Question: Write a C++ program (using switch statement) that reads a number followed by one space and then a letter. The number is the value

Write a C++ program (using switch statement) that reads a number followed by one space and then a letter. The number is the value of radius r. If the letter following the number is: C or c then compute the area of the circle which is AC = r S or s then compute the area of the surface sphere which is AS = 4r2 V or v then compute the volume of the sphere which is VS = 3/4mr Else the program should print a message that the data entered is incorrect and terminate.
Step by Step Solution
3.50 Rating (153 Votes )
There are 3 Steps involved in it
Here is an example C program using a switch statement to calculate different values ba... View full answer
Get step-by-step solutions from verified subject matter experts
