Question: This Assignment will Focus on Software Engineering: Using Functions in a Menu Driven Program Your Task: Write a calculator Program with following functions (lack of
This Assignment will Focus on Software Engineering: Using Functions in a Menu Driven Program
Your Task: Write a calculator Program with following functions (lack of function will result in a grade of zero). Your program must have the following menu and depending on the users choice, your program should be calling the pertaining function to display the result for the user.
1 - Add
2 - Subtract
3 - Multiply
4 - Divide
5 - Raise X to the power Y
6 - Finds if a number is even or odd
0 - Quit
Your calculator must: 1. Display a menu with all the options
2- Ask the user to select an option from the menu 3. Based on the user selection, your program must then ask for the operand/s and call the pertaining function.
4. Your program will accept int and the result can be displayed in double (utilize type casting).
5.Once your program is done with the user's option, your program must ask if the user would like to try another option utilizing loops)
Input Validation: Your program should only accepts numbers.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
