Question: Create class HugeInteger that uses a 30-element array of digits to store integers as large as 30 digits each. Provide member functions input, output, add
Create class HugeInteger that uses a 30-element array of digits to store integers as large as 30 digits each. Provide member functions input, output, add and substract. For comparing HugeInteger objects, provide functions isEqualTo, isNotEqualTo, isGreaterThan, isLessThan, isGreaterThanOrEqualTo and isLessThanOrEqualToeach of these is a "predicate" function that simply returns TRue if the relationship holds between the two HugeIntegers and returns false if the relationship does not hold. Also, provide a predicate function isZero.
b) If you feel ambitious, provide member functions multiply, divide and modulus.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
