In C#, Write a method with the following specifications: name : DisplayMenu arguments : none return value
Fantastic news! We've Found the answer you've been seeking!
Question:
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
Posted Date: