Question: In main ( ) , create program that has the user enter two values ask if the user wants to perform an operation ( add
In main create program that has the user enter two values ask if the user wants to perform an operation add subtract, multiply or divide Create a functionmethod 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 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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
