Question: Write a code. For this project you will be designing and implementing a system, in C++, to help describe and determine a schedule for a

Write a code. For this project you will be designing and implementing a system, in C++, to help describe and determine a schedule for a set of nurses at an emergency clinic. The clinic is open 24 hours a day, five days a week, and nurses work in eight hour shifts. Using bit vectors and set operations, your system should provide information about the available nurses and their potential schedules, as well as determine an actual schedule for a week.

1. Allow the user to choose the file containing the list of nurse schedules.

2. For a nurses schedule, the first line will contain the name of the nurse

3. The next four lines will contain the day and times they can work.

4. The times will be in 24 hour, military style format.

Your program should read in each these schedules and create five-bit vectors for each nurse, one for each day of the week, and store their availability information with each hour of the day being a slot in the bit vector. Using appropriate set operations you implement, your program should output the following:

A yes or no answer as to whether there is simple, complete coverage of all 120 hours during the week,

i.e. can at least one nurse work during each hour of the week

You must submit a .zip file containing the following:

1. All files necessary to compile and run your program

2. A README file explaining how to compile and run your program

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!