In this program you will compute the date of Easter Sunday, which is
the first Sunday after the first full moon of Spring. With this
program, those of you who care about Easter Sunday will be able to
determine when it is years into the future, and those of you that
don't can determine when to not go out to lunch. Regardless, you'll
get practice using variables, arithmetic operators, and the print
This algorithm was invented by Carl Friedrich Gauss.
In your program you will prompt the user to enter the year and then write out the date for Easter Sunday.
Here is a program template that you may use. The code to accept input and make a decision has been provided for you. You may not use any concept that has not been introduced in class.
You will need to write the output statements yourself.
Your session will look like this:
Enter year: 2001You also want to make sure that the tense for the verb is correct. For years before 2012, the statement should say "Easter Sunday was on ...". For the year of and years after 2012, the statement should say "Easter Sunday will be on ...".
Easter Sunday was on 4 / 15 / 2001
Be certain to test your code! You can go to the US Naval Observatory website and check your result:
Include your test cases and their output in comments at the end of your program. Add at least 5 test cases and be sure to test strange (edge, unexpected, intresting) cases. So after the final statement of your program, main() add test cases such as this:
#test case 1
#Easter Sunday was on 4 / 4 / 2010
#test case 2
#Easter Sunday will be on 4 / 20 / 2014
The program that you will be writing will be called EasterSunday. We will be looking at good documentation, and adherence to the coding conventions discussed in class. You may use the same variable names used in the problem statement. Your file EasterSunday.py will have the following header:
# File: EasterSunday.py
# Assignment: 2
# Student Name:
# Course Name: CS 303E
# Unique Number:
# Date Created:
# Date Last Modified:
# Slip days used this assignment:
# Total slip days used:
Use the turnin program to submit your EasterSunday.py file by 11p on Friday, Feb 1st.