Question: The idea is to build a function that assigns a category ( A , B , or C ) to the dates on a cycle

The idea is to build a function that assigns a category (A, B, or C) to the dates on a cycle of every 2 days (48hrs) switching to the next category in the list. It should repeat until the end date is reached. starting date is 1/1/2022 to 12/31/2050.
I want the output to be:
1/1/2022 : Shift A
1/2/2022 : Shift A
1/3/2022 : Shift B
1/4/2022 : Shift B
1/5/2022 : Shift C
1/6/2022 : Shift C
Note: The previous question you answered were wrong, Do not copy and paste my code I gave you.

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!