Answer to Question #332620 in C++ for anna123

Question #332620

Create class BinaryStore & Byte


overloaded +=in BinaryStore

overloaded + for Byte Class

overloaded - Byte Class

overloaded || for Byte Class

overloaded && for Byte Class

overloaded == Byte Class


int main()

{

// address 4 bit bytes 8 bit long


BinaryStore b1(10);

b1+="0011";

b1.Add("0011",Byte("00000010"));

cout<<b1;

b1+="0110";

b1.Add("0110",Byte("00000110"));

b1+="1010";

Byte nb=b1.Get("0011")+b1.Get("0110");

b1.Add("1010",nb);

Byte nb2=b1.Get("1010")+b1.Get("0110");

bool r=b1.Get("0011")==b1.Get("0110");

cout << r <<b1;

Byte nb3=b1.Get("1010");

bool r1=nb3==b1.Get("1010");


cout<< r1 ;

Byte nb4=b1.Get("0011") || b1.Get("1010");

Byte nb5("00001100");


Byte nb6= nb4 && nb5;

b1+="1011";

b1.Add("1011",nb6);

cout<<b1;

}


0
Service report
It's been a while since this question is posted here. Still, the answer hasn't been got. Consider converting this question to a fully qualified assignment, and we will try to assist. Please click the link below to proceed: Submit order

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS