Answer to Question #177729 in C++ for zain ul abdeen

Question #177729

Add a function in your BaraBitKaar class from previous assignment as follows

 BaraBitKaar Add(BaraBitKaar b);

When this function called in main() like

BaraBitKaar r;

r = p.Add(q); //this is how Add is supposed to be used to add p and q. Notice r receives the return which is of type BaraBitKaar.

r.PrintBinary(); // 

should be able to add numbers p and q and put the result in r.make a new function Subtract in class BaraBitkaar i.e.

BaraBitKaar Subtract(BaraBitKaar b);

BaraBitKaar Multiply(BaraBitKaar b);

void Divide(BaraBitKaar b, BaraBitKaar & quotient, BaraBitKaar & remainder); 

Make bitkaari unlimited as class AzeemBitKaar. It is truly unlimited. You will start with 1 byte array, and grow it when required to keep larger values.


1
Expert's answer
2021-04-02T02:02:42-0400
Dear zain ul abdeen, your question requires a lot of work, which neither of our experts is ready to perform for free. We advise you to convert it to a fully qualified order and we will try to help you. 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