Question: I got a start on it already, this is the format. Problem B: How much does your prof work? (20 points) Your professor needs to

 I got a start on it already, this is the format.Problem B: How much does your prof work? (20 points) Your professorneeds to figure out how many meetings to schedule in a day,

I got a start on it already, this is the format.

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 Hinclude using namespace std; int main() BI int timeWorkedl, minutesWorked, timeMeetingl, minutesMeeting, numMeetings, convertedWorkTime, convertedMeetingTime; char a, b, c, d: 17 Maybe do something with string and lealpha or de instead? 17 isdit only works 0-9 11 isalnum might work instead cout > timeworked1 >> a; if ( ah) cin >> minutesworked >> b; } cout > timeMeetingl >> C; if ( c'h") ( cin >> minutesMeeting >> d; } if (a == 'm' && C'm') numMeetings = timeworkedl / timeMeeting1

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!