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

  1. log on to the submission system using your CNS account information
  2. select the "810:036, C++ Fienup" course
  3. select the radio button corresponding to lab being submitted
  4. enter the name of the file you wish to submit which needs to be accessable on the computer from which you are submitting