Question: write class that will multiply and add very large numbers, up to thousands and thousands of digits long in C++. Cannot add any more #includes.

 write class that will multiply and add very large numbers, up

to thousands and thousands of digits long in C++. Cannot add any

write class that will multiply and add very large numbers, up to thousands and thousands of digits long in C++. Cannot add any more #includes.

Please implement with strings or int array with fast and efficient runtime. and simple comments

2 3 4 // do not add more #includes. #include #include #include 8 9 using namespace std; 18 IIThe class LargeNumber is used to add and multiply large values up to hundreds of digits and/or more. 11 12 13 class LargeNumber 14 15 private: 16 17 18 public: 19 20 21 Post condition: construct a "LargeNumber" with value of e LargeNumber() { 23 24 25 26 27 28 29 // Pre condition: // n greater than or equal to , if not return /Post-condition: constructs new "LargeNumber" with a value of n 31 32 LargeNumber(int n) { 34 35 36 37 38 39 40 Pre condition: sconsists of 1, or more, digit characters, if not return Post condition construct a "LargeNumber" representation of str such that this->to_string) str LargeNumber(const string& str) { 42 43 45 /Post condition

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!