Question: 4 5 7 8 Write a Python program called dayOfWeek.py that takes a date as input and prints the day of the week that day

4 5 7 8 Write a Python program called dayOfWeek.py that takes a date as input and prints the day of the week that day falls on (using 0 for Sunday, 1 for Monday, 2 for Tuesday, and so forth). For example: 2 3 6 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 [evaluate dayOfWeek.py] Enter an integer between 1 and 12 representing the month: 1 Enter an integer between 1 and 31 representing the day in the month: 1 Enter the integer for the year, e.g. 2021: 2021 1/1/2021 is on day 5. [evaluate dayOfWeek.py] Enter an integer between 1 and 12 representing the month: 7 Enter an integer between 1 and 31 representing the day in the month: 15 Enter the integer for the year, e.g. 2021: 2024 7/15/2024 is on day 1. In your output statement, please use the exact format as shown above, including the date format and the period directly at the end after the day number. Your program should prompt the user for three integer values: month, day, and year. For month, use 1 for January, 2 for February, and so forth. The day of the week may be calculated using the modified doomsday formula below, where m=month, d=day, and y=year, and the "/" represents integer division: X = Yo = y (14 m) / 12 x = y yo Yo + yo /4 / 100 + yo / 400 mo = m + 12 x ((14 m) / 12) 2 do = (d + x + (31 x m.) / 12) % 7 X mo x =
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
