Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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

Beginning C# 5.0 Databases

Authors: Vidya Vrat Agarwal

2nd Edition

1430242604, 978-1430242604

More Books

Students also viewed these Databases questions

Question

What are the main differences between rigid and flexible pavements?

Answered: 1 week ago

Question

What is the purpose of a retaining wall, and how is it designed?

Answered: 1 week ago

Question

How do you determine the load-bearing capacity of a soil?

Answered: 1 week ago

Question

what is Edward Lemieux effect / Anomeric effect ?

Answered: 1 week ago