Exercise 2: Implementing Calculator
Implement a calculator using switch statements.
We'll cover the following...
We'll cover the following...
Problem statement
Write a code that will take the following:
Two
floattype variables namednum1andnum2A char type variable called
Operatorcan be assigned one of the following values:+-*/
Use
switchstatements to compute the following on thenum1andnum2variables:Addition
Subtraction
Multiplication
Division