Question: In main ( ) , create program C + + that has the user enter two values ask if the user wants to perform an

In main(), create program C++ that has the user enter two values ask if the user wants to perform an operation (add, subtract, multiply or divide). Create a function/method for each operation. Call the the appropriate functions based on the operation chosen by user, perform the operation, and output the result as appropriate.
Include appropriate error checking the prevents division if the user enters 0 for the second number; also divide the larger number by the smaller number.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!