Help!!!!!!!!!
Author |
Message |
tivanenk
|
Posted: Tue Oct 12, 2010 11:27 am Post subject: Help!!!!!!!!! |
|
|
Can anyone help me? I need to make a program to determine easter every year. They gave me the steps, but i don't know how to do it. Please send me a picture of something to show the formulas and stuff. Here are the steps.
EASTER ASSIGNMENT
To determine the date for Easter, in any given year, do the following:
1. Calculate the remainder of the year divided by 19: call this A
2. Get the quotient of the year divided by 100: call this B
3. Find the remainder of the year divided by 100: call this C
4. Get the quotient of B divided by 4: Call this D
5. Get the remainder of B divided by 4: Call this E
6. F is the quotient of the sum of B and 8, and 25
7. G is the quotient of 3 into the sum of 1 and the difference of B and F
8. Calculate the difference of B and the sum of D and G. Add 15 and the product of A and 19 to this. Find the remainder when this is divided by 30: call this H
9. I is the quotient of C divided by 4
10. K is the remainder of C divided by 4
11. L is the remainder of 7 divided into the following: 32 plus two times the sum of E and I minus the sum of H and K
12. To calculate M by adding the following: H times 11, L times 22 and A and then finding the quotient of when this sum is divided by 451
13. The month in which Easter falls is calculated as the quotient of 31 divided into the sum of: H, L, 114 and minus 7 times M
14. The Day is one plus the remainder of 31 divided into the sum of: H, L, 114 and minus 7 times M.
Please do it and send me a photo of the stuff I need to input into Turing 4.1 |
|
|
|
|
 |
Sponsor Sponsor

|
|
 |
A.J

|
Posted: Tue Oct 12, 2010 4:35 pm Post subject: RE:Help!!!!!!!!! |
|
|
Let me be the one to say it: Here at compsci.ca, we don't do your assignments for you. We'll help you understand some topics that you find trouble understanding, or even point you in the right direction, but we DO NOT do the work for you.
I am sorry, I am afraid I can't help you. |
|
|
|
|
 |
tivanenk
|
Posted: Tue Oct 12, 2010 4:39 pm Post subject: Re: Help!!!!!!!!! |
|
|
but i don't understand anything at Turing |
|
|
|
|
 |
DanShadow

|
Posted: Tue Oct 12, 2010 4:54 pm Post subject: RE:Help!!!!!!!!! |
|
|
If your teacher has given you an assignment, it means that everything in the assignment is information he has already taught you.
Quote: 1. Calculate the remainder of the year divided by 19: call this A
2. Get the quotient of the year divided by 100: call this B
Stuff like this is simple.
He is asking you to declare variables (var A : integer := year/19)
and perform a math equation to set the value.
Look through your notes on how to create variables, then look at what he asking you to set in the variables.
If he says "calculate the remainder of the year divided by 19, and call this A", he is saying:
- Create a variable called 'A'
- Set the value of the variable 'A' to be equal to *the remainder of the year / 19*
At CompSci.ca we dont/cant GIVE you the answers, but we can help you learn how resolve issues your having, or make suggestions on how to resolve programming issues.
What your asking is for your assignment to be done for you, and if you submit that you are committing an act of plagiarism.
Look over your notes, if you have any specific questions/issues, we'll be glad to help! |
|
|
|
|
 |
|
|