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). Some rules: You cannot schedule fractional meetings.
The format for inputting time looks like this: 12h30m (12 hours 30 minutes) OR this: 45m (45 minutes). You code needs to handle EITHER input format for both inputs.
You can assume that the numbers for hour and minute are positive whole numbers
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started