Question
In C#, Write a method with the following specifications: name : DisplayMenu arguments : none return value : none tasks : display the following menu
In C#,
Write a method with the following specifications: name:DisplayMenu arguments: none return value: none tasks: display the following menu choice on the screen Calculation Menu 1) Calculate Sum 2) Calculate Sum of Squares 3) Calculate Sum of Cubes 0) To Exit Enter the number that corresponds to your choice:Modify your main so that the above method is call repeatedly. The program will terminate when the user enters 0. Any other choice should produce an error message. Because you will not be doing any arithmetic you may accept the user response either as anint, or achar or astring.
Using ado-while loop to do the repetitions and aswitch to check for user's choice is the recommended way to accomplish this
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started