I've only gotten some of this program done so bear with me but can anyone assist me with this???
***Write a program that will let you continuously display a menu, input two double-precision numbers, and an operation code with values 1, 2, 3 or 4 indicating respectively addition (+), subtraction (-), multiplication (*) or division (/). The operation code 5 will stop your program. Your program will perform a basic operation according to the operation code, and display the results after the operation.
Programming Requirements:
1. Include at least the following user-defined functions (function headers are given as follows) in your program.
void displayMenu()
void performAction(int code)
double getSum(double num1, double num2)
double getDifference(double num1, double num2)
double getProduct(double num1, double num2, double product)
double getQuotient(double num1, double num2, double quotient)
2. Display the following main menu:
Operation Main Menu
====================
1. Addition
2. Subtract
3. Multiplication
4. Division
5. Exit
--------------------
Enter your operation code (1, 2, 3, 4 or 5):
3. Perform the operation according the input code.
4. When the operation code 1 is input, add two number and display sum of two numbers.
5. When the operation code 2 is input, subtract two number and display difference of two numbers.
6. When the operation code 3 is input, multiply two number and display product of two numbers.
7. When the operation code 4 is input, divide the first number by the second one display the quotient.
8. When the operation code 5 exit your program
Bonus** If the operation code is 4, and the second number is 0.0, your program should display the following message: Divided by Zero.
9. Display the results with appropriate labels.
An Example: Operation Main Menu
====================
1. Addition
2. Subtract
3. Multiplication
4. Division
5. Exit
--------------------
Enter your operation code (1, 2, 3, 4 or 5): 1
*************************************************
Please enter two double numbers: 2.5 3.6
The sum is 6.10
*************************************************
Operation Main Menu
====================
1. Addition
2. Subtract
3. Multiplication
4. Division
5. Exit
--------------------
Enter your operation code (1, 2, 3, 4 or 5): 5