Write a complete programme in C++. It is also to generate the sequence of posible shift types.
Number of nurse ? ? ? ? ? ? ? ? ? = ? ? ? ? ? ? ? ? n
Number of days ? ? ? ? ? ? ? ? ? ? = ? ? ? ? ? ? ? ? 35 ( 5weeks)
Legal work night shift? ? ? = ? ? ? ? ? ? ? ? 2<=ns<=3
*Hard constraints and soft constraint must be met in any circumstances otherwise the roster or schedule is considered to be infeasible and unacceptable.
*
***Types of Nurses***
***? **Full-Time Nurses have a contract of **36** hours per week*
***Valid night shift patterns***
*? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? M? ? ? ? ? ? ? ? T? ? ? ? ? ? ? ? ? W? ? ? ? ? ? ? T? ? ? ? ? ? ? ? ? F? ? ? ? ? ? ? ? ? S? ? ? ? ? ? ? ? ? S*
*Pattern A? ? ? ? ? ? ? ? ? N? ? ? ? ? ? ? ? N? ? ? ? ? ? ? ? -? ? ? ? ? ? ? ? ? ? -? ? ? ? ? ? ? ? ? ? -? ? ? ? ? ? ? ? ? ? -? ? ? ? ? ? ? ? ? ? -
This above N for M & T are fix. We need to get the posible other types of shift for W to S and followed by M to S for the next 4 weeks as all togather are 5 weeks. So there will be many posibilities. But again have to check the constraints.*