Ive been assigned this project (might look dumb to you but i cant make it to run!)
Create a class, HugeInteger that uses a 40 element array of digits to store integers as large as 40 digits eachwrite the following memeber functions void InputHugeInteger (parameter_type parameter 1); initialises the data type within the data member for the struct
void OutputHugeInteger (); displays the data within the data member of the struct.
Write the following other functions
HugeInteger addHugeinteger (hugeinteger A, Hugeinteger B )
void substractHugeinteger (hugeinteger &A, Hugeinteger B )
Write the following comparison functions
bool isequalto (hugeInteger A, Hugeinteger B )
bool isnotequalto (hugeInteger A, Hugeinteger B )
bool isgreaterthan (hugeInteger A, Hugeinteger B )
bool islessthan (hugeInteger A, Hugeinteger B )
bool isgreaterthanorequal (hugeInteger A, Hugeinteger B )
bool islessthanorequal (hugeInteger A, Hugeinteger B )
These functions compare the HugeIntegers A to B and returns a false or true value
Write a driver program to include a menu. THe menu should include the following:
1 Create one new HugeInteger
2 View all created HugeIntegers
3 Add 2 HugeIntegers
4 Substract 2 HugeIntegers
5 Compare 2 Hugeintegers
6 Quit
For options 3 and 4 the user must be able to specify which two hugeintegers will be used in the addition or substraction. For Option 5, the user must see the result of all the comparison functions, on two HiugeIntegers which the user will specify before the comparisons. A maximum of 10 Huge integers should be allowed in your program.
I can attach or send my code so far if you want....
Cheers.
ANY HELP WOULD BE VERY APPRECIATED!
Seph
Aqua-Soft Forums