Lab #5: Operator Overloadin We will create a class of Exponent. Create a class named Exponent with this attributes: base type integer exp type integer Should create constructors (default, parameter),...



Lab #5: Operator Overloadin





We will create a class of Exponent.


  • Create a class named Exponent with this attributes:


    • base type integer

    • exp type integer



  • Should create constructors (default, parameter), settters and getters.

  • Use operator overloading for the arithmetic operations in the Exponent class, +, -, *, and /.

  • Use operator overloading of cin and cout (istream and ostream).

  • Should also include operator overloading for assign (=).

  • Create a Main Menu:

    • Add two exponents numbers

    • Subtract two exponents numbers

    • Multiply two exponents numbers

    • Divide two exponents numbers

    • Evaluate the exponent

    • Exit



  • All class functions should be well defined in the scope of this lab.





Jun 10, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here