Question: 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

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 or just 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? 12h30m How long is a meeting? 30m You can schedule this many meetings: 25.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!