In this program, we will display a menu to the user. The user can choose any option from
the given menu. The menu would be something like this:
Welcome to the World of Control Structures
Press (A) to add two integers
Press (S) to subtract two integers
Press (M) to multiply two integers
Press (E) to exit the program
Please choose one of the above options:
The above menu is pretty much self explanatory. If the user inputs ‘a’ or ‘A’, you will give
him the option to input two integers. Once he/she has done that, you will display the
sum of the two numbers. If the user presses ‘e’ or ‘E’, the program should exit. If the
user inputs anything else, you should display an error message saying “You have input
an invalid command” .
1
Expert's answer
2019-09-24T16:44:21-0400
Dear shaheer, 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