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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related General Management Questions!