Question: Keep it as basic as possible, dont use arrays or advanced stuff Problem B: How much does your prof work? (20 points) Your professor needs


Keep it as basic as possible, dont use arrays or advanced stuff
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 Example 2 (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 3: How many hours are you working, prof? 39m How long is a meeting? 10m You can schedule this many meetings: 3
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
