Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C# Decision Structure: Switch Statement CPSC 1012 In-Class Exercise #5-Winter 2019 Term CPSC 1012 In-Class Exercise #5-Decision Structure: Switch Statement Student Name: Student Mark: 5

C#
Decision Structure: Switch Statement image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Pro PowerShell For Database Developers

Authors: Bryan P Cafferky

1st Edition

1484205413, 9781484205419

More Books

Students also viewed these Databases questions

Question

develop ideas for a research project;

Answered: 1 week ago