Question: Switch Statements No try catch C# Code only on Main Method CPSC 1012 In-Class Exercise #5-Winter 2019 Term CPSC 1012 In-Class Exercise #5-Decision Structure: Switch
CPSC 1012 In-Class Exercise #5-Winter 2019 Term CPSC 1012 In-Class Exercise #5-Decision Structure: Switch Statement Student Name: Student Mark: 5 INSTRUCTIONS Complete the requirements of this assignment on your own. When you have finished, write your name on the board to get your instructor to mark your assignment. You are encouraged to create a flowchart; without a flowchart your instructor may not provide any assistance. Step 1: Create a program named CPSC1012-Ex05-YourName Step 2: In the Main0 method, write the code that will do the following: Ask the user to select the geometric shape type from a menu . For the selected menu item, calculate the volume of the geometric shape based on the following formulas: o Rectangular Solid: o Cylinder: o Spheroid: o Cone: Display the volume of the shape, displayed showing 4 decimal places, or an error message for an incorrect menu option input. Sample Outputs he of the selected shage is 192 Inter radius : 2 3.7 fron the Fallon a valld selction
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
