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;
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started