Question: Q1. Create a Class HugeInteger that use one integer following functions: For eg., add(HugeInteger I1, HugeInteger I2) Input, output, add, Subtract, Multiply, divide, modules.(for last

Q1.

Create a Class HugeInteger that use one integer following functions:

For eg., add(HugeInteger I1, HugeInteger I2)

Input, output, add, Subtract, Multiply, divide, modules.(for last two function also provide checks for denominator is not equal to zero).

For counting two Huge Integer object, write following functions:

Is Equal To, Is Not Equal To, Is Greater than, Is Less Than, Is Greater Than 0, Equal To, Is Less Than 0, Equal To, is 0.

Also overload parameterized Constructor, non- parameterized Constructor, Copy Constructor and Destructor. Write proper main() to Test this class.

NOTE:

show that integer is,

Is Equal To, Is Not Equal To, Is Greater than, Is Less Than, Is Greater Than 0, Equal To, Is Less Than 0, Equal To, is 0

I need this type of output;

Q1. Create a Class HugeInteger that use one integer following functions: For

Output: 7654321 + 7891234 = 15545555 7891234 - 5 = 7891229 7654321 is equal 7654321 7654321 is not equal to 7891234 7891234 is greater than 7654321 5 is less than 7891234 5 is less than or equal to 5 O is greater than or equal to 0 n3 contains value 0 Output: 7654321 + 7891234 = 15545555 7891234 - 5 = 7891229 7654321 is equal 7654321 7654321 is not equal to 7891234 7891234 is greater than 7654321 5 is less than 7891234 5 is less than or equal to 5 O is greater than or equal to 0 n3 contains value 0

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!