A Menu-driven is a term used to describe a software program that is operated using file menus instead of using commands. The Menu-driven interface is commonly used on cash machines (also known as automated teller machines, or ATMs), ticket machines, and information kiosks. An Example of the menu-driven interface is as the following.
Operations:
1. Addition
2. Subtraction
3. Multiplication
4. Division
5. Exit
Enter the number of your choice:
In the above example, users will enter a number of their choice. User will type 1 if he/she chooses the “Addition” operation and so on.
Write a program that lets the user perform arithmetic operations on two numbers. Your program must be menu-driven, allowing the user to select the operations; add (+), subtraction (-), multiplication (*), division (/), modulo (%), and even-or-odd.
Operations and two numbers.
Result of calculation.