Question: Your program displays a menu for the user. A sample menu organization is provided in sample I/O. The program will ask for two numbers from

Your program displays a menu for the user. A sample menu organization is provided in sample I/O. The program will ask for two numbers from the user. The user will then select what kind of mathematical operations s/he wants to perform. According to the selection the calculator performs the calculation

1. Prompt user for the two numbers

2. Display the selection of operation

3. Prompt user for the choice of selection

4. If user selection is 1

5. Add the two numbers

6. Else if user selection is 2

7. Subtract second number from the first number

8. Else if user selection is 3

9. Multiply two numbers

10. Else if user selection is 4

11. Divide the first number by the second number 12. Else

13. Display invalid input End of main

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!