Fill This Form To Receive Instant Help
Homework answers / question archive / The questions must be answered in the context of object oriented programming or functional programming
The questions must be answered in the context of object oriented programming or functional programming.
Submit complete Python codes for Questions 1-4.
*** Note that your program should perform error checking.
*** You may find the replace method for string helpful for this question. Information about the replace method can be found on the Internet.
A magic date is a date where the day multiplied by the month is equal to the two-digit year. For example, June 10, 1960 is a magic date because June is the sixth month, and 6 times 10 is 60, which is equal to the two-digit year.
In this question, you may need to have another function named daysInMonth that will take two parameters: (1) The month as an integer between 1 and 12, and (2) the year as a four digit integer and determines how many days there are in a particular month. Ensure that your function reports the correct number of days in “February” for Leap Years.
Most years have 365 days. However, the time required for the Earth to orbit the Sun is actually slightly more than that. As a result, an extra day, February 29, is included in some years to correct for this difference. Such years are referred to as leap years. The rules for determining whether or not a year is a leap year follow:
? Any year that is divisible by 400 is a leap year.
? Of the remaining years, any year that is divisible by 100 is not a leap year.
? Of the remaining years, any year that is divisible by 4 is a leap year. ? All other years are not leap years.
PFA
here I am sending you exercise 1a, you can modify the text of the input.txt file and the sensitive words of the sens.txt file, the program only generates an output file which you must assign the name and exercise 1b is also attached