Challenge 3: Implement a Calculator Class
In this exercise, you have to implement a calculator which can perform addition, subtraction, multiplication, and division.
We'll cover the following...
We'll cover the following...
Problem Statement
Write a C++ class called Calculator with
-
privatemember variables:num1andnum2(float type)
And member functions:
-
add(float n1, float n2), a function which returns the addition of two numbers -
Subtract(float n1, float n2), a function ...