Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

write a computer program in that can be 15) of any of the three shapes that e a ch accepted values are for cont e

image text in transcribed
write a computer program in that can be 15) of any of the three shapes that e a ch accepted values are for cont e nt Design a switch statement, using the chees the The individual formulae and variables needed to cheese Get the radius (r) of the sphere as input and und e rsen Sphere: V- S4r /3 Cone: Get radius (r) and height (h) as inputs and volume and surface area are computed u V=xrh/3 S = nr(r+ V + ?) s Prism: Three inputs: length (x), width (w) and height (h) V = xwh S=2(xw + xh + hw) our program must should get user input for shape, then enters switch statement to compute the volume and surface area. (25 points nally, it must display the volume and surface area with a precision of 2

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

Microsoft Visual Basic 2005 For Windows Mobile Web Office And Database Applications Comprehensive

Authors: Gary B. Shelly, Thomas J. Cashman, Corinne Hoisington

1st Edition

0619254823, 978-0619254827

Students also viewed these Databases questions