Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Given a date written as a triplet (day, month, year), write a decision table tha

ID: 3583629 • Letter: G

Question

Given a date written as a triplet (day, month, year), write a decision table that calculates the next date (tomorrow).

Please answer step by step and explain your answer.

Consider the following equivalence classes:

• M1= {month | month has 30 days}

• M2= {month | month has 31 days}

• M3= {month | month is December}

• M4= {month | month is February}

• D1= {day | 1 day 27}

• D2= {day | day = 28}

• D3= {day | day = 29}

• D4= {day | day = 30}

• D5= {day | day=31}

• Y1= {year | year is a leap year}, i.e. {year | 1812 year 2012 AND year 1900 AND (year = 0 mod 4}

• Y2= {year | year is a common year} (not leap)

Explanation / Answer

Sr. No Day Month Year Next Date 1 D1 M1 Y1 (D1/D2,M1,Y1) 2 D1 M1 Y2 (D1/D2,M1,Y2) 3 D1 M2 Y1 (D1/D2,M2,Y1) 4 D1 M2 Y2 (D1/D2,M2,Y2) 5 D1 M3 Y1 (D1/D2,M3,Y1) 6 D1 M3 Y2 (D1/D2,M3,Y2) 7 D1 M4 Y1 (D1/D2,M4,Y1) 8 D1 M4 Y2 (D1/D2,M4,Y2) 9 D2 M1 Y1 (D3,M1,Y1) 10 D2 M1 Y2 (D3,M1,Y2) 11 D2 M2 Y1 (D3,M2,Y1) 12 D2 M2 Y2 (D3,M2,Y2) 13 D2 M3 Y1 (D3,M3,Y1) 14 D2 M3 Y2 (D3,M3,Y2) 15 D2 M4 Y1 (D4,M4,Y1) 16 D2 M4 Y2 (D1,M2,Y2) 17 D3 M1 Y1 (D4,M1,Y1) 18 D3 M1 Y2 (D4,M1,Y2) 19 D3 M2 Y1 (D4,M2,Y1) 20 D3 M2 Y2 (D4,M2,Y2) 21 D3 M3 Y1 (D4,M3,Y1) 22 D3 M3 Y2 (D4,M3,Y2) 23 D3 M4 Y1 (D1,M2,Y1) 24 D4 M1 Y1 (D1,M2,Y1) 25 D4 M1 Y2 (D1,M2,Y1) 26 D4 M2 Y1 (D5,M2,Y1) 27 D4 M2 Y2 (D5,M2,Y2) 28 D4 M3 Y1 (D5,M3,Y1) 29 D4 M3 Y2 (D5,M3,Y2) 30 D5 M2 Y1 (D1,M1/M4,Y1) 31 D5 M2 Y2 (D1,M1/M4,Y2) 32 D5 M3 Y1 (D1,M2,Y2) 32 D5 M3 Y2 (D1,M2,Y1/Y2)

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote