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
1
Expert's answer
2017-12-04T14:14:19-0500
Dear m, your question requires a lot of work, which neither of our experts is ready to perform for free. We advise you to convert it to a fully qualified order and we will try to help you. Please click the link below to proceed: Submit order
Numbers and figures are an essential part of our world, necessary for almost everything we do every day. As important…
APPROVED BY CLIENTS
"assignmentexpert.com" is professional group of people in Math subjects! They did assignments in very high level of mathematical modelling in the best quality. Thanks a lot
Comments
Leave a comment