7 q 10 11 12 13 zeller.py month int(input('Enter the month 1-12: ')) day = int(input('Enter day of the month 1-31: )) ye

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

7 q 10 11 12 13 zeller.py month int(input('Enter the month 1-12: ')) day = int(input('Enter day of the month 1-31: )) ye

Post by answerhappygod »

7 Q 10 11 12 13 Zeller Py Month Int Input Enter The Month 1 12 Day Int Input Enter Day Of The Month 1 31 Ye 1
7 Q 10 11 12 13 Zeller Py Month Int Input Enter The Month 1 12 Day Int Input Enter Day Of The Month 1 31 Ye 1 (217.04 KiB) Viewed 20 times
7 q 10 11 12 13 zeller.py month int(input('Enter the month 1-12: ')) day = int(input('Enter day of the month 1-31: )) year = int(input('Enter the year: ')) m = month q=day k year 100 J = year // 100 if month 2: += 12 # Changing the value of m to 13 or 14 in case the month is January or Febuary K = (year-1) 100 (year-1) // 100 J # for both lines 12 and 13 we are decreasing the year by 1 because that is what is stated in Zellers congruence week= ['Saturday', 'Sunday', 'Monday', 'Tuesday', 'Wedsenday', 'Thursday', 'Friday'] h = (q+((13×(n+1}}//5)+K+{K//4)+{J//4)+5*J)%7 14 15 16 17 18 19 print(0/0/() is a {}.'.format(month, day, year, week [h])) 3 characters selected Tab Size: 4 Python
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply