Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

SQL Database Programming

Authors: Chris Fehily

1st Edition

1937842312, 978-1937842314

More Books

Students also viewed these Databases questions

Question

5. What role does power play in determining our cultural spaces?

Answered: 1 week ago