Answer:
Explanation:
/* General Code for achieving perfect error for any level and any
digit of codewords*/
#include<iostream>
using namespace std;
int main(){
int level;
//Input memory levels.
cout <<" Enter number of Flash Memory levels : ";
cin>>level;
//construct array store levels.
int lvl[level];
for(int i = 0; i < level; i++){
//assign levels name
lvl[i] = i;
}
int digit;
cout << "Enter number of digit codewords :";
//Taking input of codeword digits
cin >> digit;
for(int i = 0; i < level;){
//output Codeword
cout << lvl[i];
//Skipping for n number digit codeword in level
i+=(digit+1);
}
}
/*
a) i from 0 to (i = i+(2+1))<levels
b) for length (1) -> 3 codewords
codewords -> {0,2,4}
for length (2) -> 2 codewords
codewords -> {0,3}
*/
Answer:
current ia = 50 mA
Explanation:
given data
mesh-current analysis
current source in circuit = 50 mA
to find out
value of the current ( ia )
solution
we know here that in mesh-current analysis with independent or dependent current or contain only here one current source then
there value of the current will be
value of the current ( ia) = 50 mA
because value of current source is self indicated mesg current
so ia = 50 mA
Answer:
a) Ql=33120000 kJ
b) COP = 5.6
c) COPreversible= 29.3
Explanation:
a) of the attached figure we have:
HP is heat pump, W is the work supplied, Th is the higher temperature, Tl is the low temperature, Ql is heat supplied and Qh is the heat rejected. The worj is:
W=Qh-Ql
Ql=Qh-W
where W=2000 kWh
Qh=120000 kJ/h
b) The coefficient of performance is:
c) The coefficient of performance of a reversible heat pump is:
Th=20+273=293 K
Tl=10+273=283K
Replacing: