...

/

Exercise: The Calculator Object

Exercise: The Calculator Object

Let's create an object which performs the basic functions of a calculator.

Problem Statement

In this exercise, you have to implement the calculator type and create the cal object from it. Your calculator will perform four basic tasks:

  • Addition

  • Subtraction ...