Page 1 of 1

Requirements and Assumptions 1. In python 2. Write a program to calculate the next year a calendar can be used, where al

Posted: Thu Jul 14, 2022 2:17 pm
by answerhappygod
Requirements and Assumptions
1. In python
2. Write a program to calculate the next year a calendar can be used,
where all of the dates align with the days of the week.
3. Example:
a. Jan 1, 2017 is a Monday in a non-leap year.
b. The next year Jan. 1 is on a Monday in a non-leap year is 2023.
4. Input: Ask user to enter a year in the range of 1900 to 2022.
a. Validate the input. If invalid loop and ask again.
5. Calculate the next year that calendar can be used.
6. Output: Simply display a message similar to this:
a. The 1950 calendar can be used again in 1956.
7. The next year the calendar from that year will align itself.
8. Keep looping and have the user input another year. The program will end when
the user enters a value of 0.