Question: Program this in C++ Problem A: All shapes and sizes (well... just two) (20 points) Make a program that asks the user whether they want
Program this in C++
Problem A: All shapes and sizes (well... just two) (20 points)
Make a program that asks the user whether they want to compute the volume for a sphere or cone by indicating s or c, respectively. This input should be case insensitive, so if they enter a capital S or C it should still go to sphere or cone, respectively. Then ask for the needed measurements and use the following formulas to compute the volume
Sphere: 
Cone:

Example 1 (user input is underlined): Do you want info for a sphere or cone (s/c)?S
What is the radius?2.5
Volume is:65.4498
Example 2 (user input is underlined):
Do you want info for a sphere or cone (s/c)?c
What is the radius of the base?7
What is the height? 77
Volume is: 3951.08
Problem B: How much does your prof work? (20 points)
Your professor needs to figure out how many meetings to schedule in a day, but they need your help! Create a C++ program for your prof that lets them input how much time they have for meetings (in hours and/or minutes), then ask them how long each of their meetings are. Your program should output how many meetings they can fit into this amount of time (assume the first input is a single large block of time). You cannot schedule fractional meetings. You also need to be able to hand hours & minutes orjust minutes as inputs to both parts, but you may assume the amount of hours/minutes are whole numbers.
Example 1 (user input is underlined):
How many hours are you working, prof? 30m
How long is a meeting?22h0m
You can schedule this many meetings:0
Example 2 (user input is underlined):
How many hours are you working, prof? 30m
How long is a meeting? 22h 0m
You can schedule this many meetings: 0
Example 3:
How many hours are you working, prof? 39m
How long is a meeting? 10m
You can schedule this many meetings: 3
Transcribed image text
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
