Work out by hand the date for Easter Sunday for 2008. Your answer should be 23 March. This is one of the earliest Easter Sundays!
In your method main() you will prompt the user to enter the year and then write out the date for Easter Sunday. You must use Scanner for your input. Your session will look like:
Enter year: 2001 In 2001, Easter Sunday is on 15 April.
You can go to the Naval Observatory website and check your result:
The class that you will be writing will be called EasterSunday. We will be looking at good documentation, and adherence to the coding convention mentioned below. You may use the same variable names used in the problem statement. Your file EasterSunday.java will have the following header:
/* File: EasterSunday.java Description: Student Name: Student UT EID: Course Name: CS 312 Unique Number: Date Created: Date Last Modified: */
You will follow the standard Java Coding Conventions. You can either view the HTML page or download the PDF or Postscript and print it out. There is a modification that I would like to make to the standard coding conventions. Please align the opening and closing braces vertically so that you can easily make out the blocks of code. For example:
Do this:
if ( x > 5 )
{
a = b + c;
}
Not this:
if ( x > 5 ) {
a = b + c;
}
Use the turnin program to submit your .java file. The proctor should receive your work by 11 PM on Saturday, 29 June 2013. There will be substantial penalties if you do not adhere to the guidelines.