Question: [CLO2] Create a program that presents a menu with the following options: 1. Addition 2. Subtraction 3. Multiplication 4. Division 5. Quit To perform
[CLO2] Create a program that presents a menu with the following options: 1. Addition 2. Subtraction 3. Multiplication 4. Division 5. Quit To perform arithmetic operations (choices 1-4), the program will request two numbers from the user for calculation. The program will continue to run and repeat until the user selects option 5 to quit. Additional notes: A. User input validation is essential. If the user enters an invalid choice that is not listed in the program menu, an appropriate message should be displayed such as "Invalid choice" B. Division by zero is an error that must be handled appropriately by the program. C. (Optional) To enhance the program's output readability, it is recommended to clear the screen after each iteration.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
