Question: Using C++ Problem Definition: Operator Overloding For Exponential Numbers(a*b) Exponential Number is a number that represented with exponent and base (amb a is base, b

 Using C++ Problem Definition: Operator Overloding For Exponential Numbers(a*b) Exponential Number

Using C++ Problem Definition: Operator Overloding For Exponential Numbers(a*b) Exponential Number is a number that represented with exponent and base (amb a is base, b is exponent) We can do binary operators by using exponential numbers such as summation-subtraction-multiplication-division Also we can check equality for two exponential numbers Requirements of This Assignment: Craete a class with name of Exponential that contains following members base and exponent in integer and private. Write the definition of default constructor and constructor with two parameters. Write get and set method to reach members. Overload binary operators function for these Exponential class such as operator+, operator-, operator*, operator/, as member function of the class. Overload operator== for this class Overload stream insertion and extraction operator for this class. Make sure that your program includes testing and demonstrating the all operator functions using created objects. NOTE THAT: Summation and subtraction of two exponential numbers can be done if both of exponent and base are the same for each exponential numbers. When expressions with the same bases are multiplied with each other; exponents are summed up and written to the common base as exponent. When exponents with the same base are divided, the denominator's exponent is subtracted from the numerator's exponent. It is also written as the power or exponent of the last common base found

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!