Question: Task 1.1 - Leap Year (2 marks) A lap your (also known as an intercalary year or bisextile year) is a calendar year (or, in

 Task 1.1 - Leap Year (2 marks) A lap your (also

Task 1.1 - Leap Year (2 marks) A lap your (also known as an intercalary year or bisextile year) is a calendar year (or, in the Case of unsolar calendars, a mouth) containing one additional day wed to keep the calendar year synchronized with the astronomical or asonal year. For the Gregorian calendar if (year is not divisible by 4) then it is a common yeur) if year is divisible by 4 but not divisible by 100) then it is a leap year) if (yeur is divisible by 100 but not divisible by 600) then it is a common year) . if year is divisible by 400 but not divisible by 3200) then (it is a leap year) else (it is a common year) 1. Create a script or jupyter notebook named "Calendar". 2. Delitwael implementit a function to test whether a given calendar year is a leap year at a common yar. Task 1.2 - The Day of the Week (2 marks) http://en.wikipedia.org/wiki/Lep-** Zeller's congruence is an algorithm devised by Christian Zeller to calculate the day of the work for any Juliano Gregorian calendar date? For the Gregorian calendar, Zellet's congruences is follow 13(m +1) 1 +*+ *1 + 1* 2)hod (1) where . has the day of the week (0 = Saturday, 1 = Sunday, 2 = Monday, Friday). qis the day of the month m is the month (3 - March 1 April, S = May..... 14 - February). Left February is entered you must add 12 to the month and mine from the year which puts them into mouth 13 or 14 of previous year. Kthe year of the century year mod 100), . J is the asto- bed century (nctiully year/100). ie. The moderatories for 1995 and 2000 are 19 and 20 respectively to not be confused with the common ordinateurs numeration which indicates 20th for both ). L.is the floor function or integer part, ir // in python mod as the modulo operation or remainder after division, t.e. 5 in python . For an 150 week inte Day-of-Week (1 = Motion to 7 Sunday), we d = (n + 5) mod 7) +1. 1. Within the same scriptor per totebook created in Taak 1.1. define and imple a function to calculate ISO Day-of-Week given a date including yomoth and day of mouth... Year 2019 (calendar year). Month 2 (February), Duy of Mouth (the 5th day of the month)

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!