AP Java Assignment 2

Background:

A convenient algorithm for determining the date of Easter in a given year was devised in 1876 and first appeared in Butcher's Ecclesiastical Handbook. This algorithm holds for any year in the Gregorian calendar, which means years including and after 1583. Subject to minor adaptations, the algorithm is as follows:

Assignment:

  1. Write a program to solve for the day that Easter falls on for a given year.
  2. The program should display the values for all of the variables using System.out. This is very useful for debugging. A Sample run output for the year 2003 would be:
    
    a = 8
    b = 20
    c = 3
    d = 5
    e = 0
    f = 1
    g = 6
    h = 26
    i = 0
    k = 3
    r = 3
    m = 0
    n = 4
    p = 19
    
  3. The applet window should display the Easter in 2003 falls on 4/20
  4. Verify that the program gives the correct date of Easter for the current year.
  5. You will need a web page to display your applet. Your homepage should have a link to the web page for this assignment.
  6. Submit the URL of your applet along with your Java code (the .java file(s)) in an email message to mrsimon@lycos.com