Question: Write C++ code. Task Implement the type of very big natural numbers. Implement it as a linked list (each node is a digit) (input example:4587,

Write C++ code.

Task Implement the type of very big natural numbers. Implement it as a linked list (each node is a digit) (input example:4587, in the list 4->5->8->7). Implement the addition and the multiplying operator with overloading. The operation demand of addition and multiplying is (m+n) and (m*n) where m and n the numbers of digits of the big number (For example: 7896 * 12: m = 4, n = 2). Also implement the (operator>>) and (operator<<).

Requirements -create one class for your task (BigNumber) -your type contains same type of elements in a linked list so you have to create the copy constructor and the initialization operator -your main program have to contains a menu which helps you to call the methods of big number -instances the objects in the main program -you have to write a method which prints the objects -use exceptions

My plan is put a string parameter in the constructor, and put each char as a digit into a node. For exaple the input string is: "3689" in the linked list: 3->6->8->9

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!