[solved] – Question 71582
This program will always print a menu of 5 options. If user chooses for example 1 (addition), the program will ask him to enter 2 numbers that the program will add to each other. Then, the menu options are printed again and so on… If user chooses 5 (quit), the program will stop. Below an example of execution (user’s input is in red). Write the program where the menu is a function, as well as the 4 calculus operations (addition, subtraction…)
Welcome to calculator your options are: 1) Addition
2)Subtraction
3)Multiplication
4)Division
5)Quit calculator
Choose your option: 1
Add this: 3 to this: 4 3 + 4 = 7 Welcome to calculator your options are: 1) Addition
2)Subtraction
3)Multiplication
4)Division
5)Quit calculator
Choose your option: 2 Subtract this: 6 from this: 9
9 – 6 = 3
using while,for and array if possible
Expert Answer
OR

