Lab 9 - HugeInteger Class
Due: Dec. 8, 2004 at 5 PM (W)
This is the textbook exercise 16.10 on page 626. I'll retype it below for your convenience.
Create a class HugeInteger that uses a 40-element array of digits to store integers as large as 40-digits each. Provide member functions inputHugeInteger, outputHugeInteger, addHugeIntegers, and subtractHugeIntegers. For comparing HugeInteger objects, provide functions isEqualTo, isNotEqualTo, isGreaterThan, isLessThan, IsGreaterThanOrEqualTo, and isLessThanOrEqualTo -- each of these is a "predicate" function that simply returns true if the relationship holds between the two huge integers and returns false if the relationship does not hold. Provide a predicate function isZero. If you feel ambitious (these are extra credit for you!), also provide member functions multiplyHugeIntegers, divideHugeIntegers, and modulusHugeIntegers.
Additional Extra Credit: Implement most of these functions by overloading of operators.
Again, use the Linux system to edit, compile, execute, and debug your programs.
To submit your assignment, click on the link at the bottom of the homework page for the course: http://www.cs.uni.edu/~fienup/cs036f04/homework/index.htm
You will need to