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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started