The Artima Developer Community
Sponsored Link

Java Answers Forum
New to programming

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Kymberly

Posts: 6
Nickname: kym
Registered: Jun, 2002

New to programming Posted: Jun 21, 2002 11:13 AM
Reply to this message Reply
Advertisement
I am having a problem computing a date for Easter Sunday from 1982 to 2048 as follows (all variables are of type int):
a is year %19
b is year % 4
c is year % 7
d is (19 * a + 24) % 30
e is (2 * b + 4 * c + 6 * d + 5) % 7

Easter Sunday is March (22 + d + e)3(cubed)

I am trying to write an application that inputs the year and outputs the date (month and day) of Easter Sunday for that year using two buttons. This programming thing is new to me this year and I am so frustrated trying to figure out how to write simple applications. Can somebody give me some advice how to make this simple application work?

Topic: Problems with resizing JFrame Previous Topic   Next Topic Topic: Excel through JDBC

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use