In C++, the largest int value is 2, 147, 483, 647. So, an integer larger than th
ID: 3647196 • Letter: I
Question
In C++, the largest int value is 2, 147, 483, 647. So, an integer larger than this cannot bestored and processed as an integer. Similarly, if the sum or product of two positive integers
is greater than 2, 147, 483, 647, the result will be incorrect. One way to store and manipulate
large integers is to store each individual digit of the number in an array.
Design a class named largeIntegers such that an object of this class can store an
integers of, at most, 20 digits. Your program should inputs two positive integers of, at most,
20 digits. Then add operations to add, subtract, multiply, and compare integers stored in two
objects. Also add constructors to properly initialize objects and functions to set, retrieve,
and print the values of objects. If the result of the numbers has more than 20 digits, output
the result with an appropriate message.
Add a main function to test all of your class members. (Hint: Read numbers as strings
and store the digits of the number in an array.)
I've seen other solutions but they do not work because of errors.
This needs to be done using classes and make sure it works.