Question: Create a Menu Based simple Calculator Program. The program must have the following menu options: 1 = Add 2 = Subtract 3 = Divide 4
Create a Menu Based simple Calculator Program. The program must have the following menu options: 1 = Add 2 = Subtract 3 = Divide 4 = Multiply 5 = Quit Based on their menu choice, your program will allow your user to add, subtract, divide or multiply two numbers entered by the user. Create the following functions in order to develop this application: displayMenu() function calcQuotient(int a, int b) function (*as an added precaution, this function should verify whether the user is dividing by 0 before dividing) calcDiff(int a, int b) function calcProduct(int a, int b) function calcSum(int a, int b) function
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
