You really have two things left you need to do. The trick to using a Scanner to prompt the user for input is to create a while-loop which tests each line the user enters, and keeps repeating until it sees a legal value. I wouldn't bother trying to extract the calculation into a helper method. Just use the calculated values directly in main :. In case anyone is looking for the updated version NY Anonymous Gregorian of the algorithm in Typescript Stack Overflow for Teams — Collaborate and share knowledge with a private group.
Create a free Team What is Teams? Collectives on Stack Overflow. Learn more. Calculate the date of Easter Sunday Ask Question. Asked 7 years, 1 month ago. Active 6 months ago. Viewed 28k times. Use the algorithm invented by the mathematician Carl Friedrich Gauss in Let y be the year such as or Divide y by 19 and call the remainder a. Ignore the quotient. Divide y by to get a quotient b and a remainder c. Divide b by 4 to get a quotient d and a remainder e. Ignore the remainder.
Divide c by 4 to get a quotient j and a remainder k. Then Easter falls on a day p of month n. I'm having a little trouble putting this into Java code. Here's what I've tried: import java. Improve this question.
Devin Wesolowski Devin Wesolowski 2 2 gold badges 2 2 silver badges 9 9 bronze badges. Tradition fails to dig a little deeper. So what does the easter bunny and eggs have to do with our Lord Jesus Christ, its tradition passed down accepted. It's am in the UK. Since the method of determining Easter was established by the Roman Catholic Church, based in Rome, surely the date used for the Full Moon should be 21st, and Easter Sunday should be the 24th of March, at least in Europe, you can have a different one if you want.
I understand that the algorithm for calculating the Full Moon is not exact, which is why there is this discrepancy, and the location of the Full Moon does not come into it. The method of calculating Easter Day was meant to prevent if coinciding with the Jewish Passover, and also prevent it from falling on the day of a Full Moon. In fact, both these eventualities can arise. When Britain was considering changing from the Julian to Gregorian Calendar in , the Royal Society with people like Edmund Halley and Christopher Wren opposed the change because of its Roman Catholic origin and suggested that the date of Easter should be determined from astronomical observations, using the actual date of the Full Moon rather than an approximate algorithm.
Jesus' execution occurred during the Passover weekend, hence why he was not left on the cross. The date of Passover is set by the lunar cycle. In pre-modern times, setting a specific date for an anniversary, ignoring lunar cycles and equinoxes would be as odd to them as moving the dates are to us. The Easter date tradition is odd years old. The calendar we currently use was invented only in and not in use in English North America until George Washington was born on February 11, However, after the Calendar Act of was enacted, the calendar was shifted to cohere more closely to the actual length of the orbit of the Earth around the sun.
Thus, George Washington's 20th birthday was February 22, on the new Gregorian calendar. Thank you for your comment, the issue is too commonly overlooked. We can give a pagan holiday holy-day any name we want, but the truth is, we are celebrating a pagan holiday. Resurrection Sunday is but should not be mixed with the worship of Ishtar. The date of Easter isn't moved because of an association with pagan Spring festivals.
The pagan festivals are where we get the name, Easter. The pagan Spring festivals became the religious celebration of the resurrection. The date moves because the original date when Jesus and his disciples were celebrating Passover, or the Last Supper--same thing was calculated according to the moon, as many ancient calendars were.
They used months or "moons", and added several days at the end of the year to make the 12 lunar periods match the one solar sun year of days.
The date changes on our modern solar calendar because this is what we know about the date--the first Sunday after the first full moon in Spring. Thank you for all the information on Easter and all the comments we are still able to read from years ago on Easter.
I have learned a lot about different religions and their celebration practices. So thank you for this education and information. Years ago my daddy told me Easter is always the 1st Sunday after the 4th full moon after Christmas.
Use to a person could get a free calendar that had all the moon's, holidays, etc listed, from their bank. I checked my calendar every year and my daddy had it correct. It wasn't that I doubted him I had to see it for myself. I told this to lots of people and they doubted me Hi Victoria, The lamb is a very powerful Easter symbol. In Christianity, the lamb was typically a sacrificial animal. It is an innocent, vulnerable creature. The lamb symbolism appears in the Old Testament several times, and then comes to represents Jesus Christ whose life was sacrificed.
The lamb signifies multiple things within Christianity. In the Old Testament story of Moses leading the Jews out of Egypt, God commanded they sacrifice a lamb to God and smear its blood on the doorframes of their homes so the destroying angel would spare their firstborn Exodus ch. This is the origin of the Passover Lamb and feast. According to the Gospels Jesus was crucified on a Roman cross the morning after the Passover feast. The cross is the most recognized symbol of Christianity due to its significance within Christian teaching.
Jesus was executed by the Romans in Jerusalem the morning after Passover. That's not where the story ends. Jesus claimed he was the Son of God with the frailties of humanity mixed with the holiness of God. After he died, Jesus rose from the dead on his own as proof of who he claimed to be and that he conquered death itself and brought reconciliation between God and humanity for all who pledge to follow after Jesus' teachings. For more information about these events and their significance for humanity I would suggest reading through the Bible books Mark or John, and Romans or 1 John and talking with a leader of a church.
Skip to main content. By Catherine Boeckmann. March 4, Tags Easter Time When is What do you want to read next? Easter and the Paschal Full Moon. The Surprising Origins of Easter The Month of March Holidays In June A. From A. Each AFM is a two-dates event due to world time zones. Each PFM is a one-date event world-wide. Easter Sunday is the date of the annual celebration of Christ's resurrection. The aim of the Easter Dating Method is to maintain, for each Easter Sunday, the same season of the year and the same relationship to the preceding astronomical full moon that occurred at the time of his resurrection in 30 A.
This was achieved in A. This replaced the original A. From 31 A. Easter Day was celebrated either: a on or just after the first day of the Jewish Passover no matter on which day of the week that Easter Day occurred , or b on a Sunday close to or on the first Passover Day. Both of these methods existed continuously throughout this period.
Easter Sunday date was based on the Julian calendar in use at that time. Precise information on this subject can be found on pages to of the Explanatory Supplement to the Astronomical Ephemeris. The Julian calendar was replaced by the Gregorian calendar in October to re-align March 20 and therefore Easter with the seasons by removing 10 dates October 5 to 14, This replacement did not occur until later in many countries e.
The Gregorian calendar very closely maintains the alignment of seasons and calendar dates by having leap years in only 1 of every 4 century years, namely, those divisible exactly by One additional February 29 date will need to be removed in about A. March 20 not March 21 is the most common Gregorian Equinox date from to A. Historically, references to March 21 have caused mistakes in calculating Easter Sunday dates. March 20 has become the important date in recent Easter dating methods.
Despite frequent references to March 21, this date has no special significance to any recent Easter dating methods. This procedure has been dramatically simplified by Ronald W.
0コメント