Calculate using functions? [modified]
-
I have to input a year so that it will show the month and day of Easter of that year. Professor provided these to calculate it. [edit] Than just below, he said: Use individual functions to calculate each of the values I don't get what he means by that. I can easily use the calculations as an assignment statement, but as a function? Am I understanding him correctly? -- modified at 5:03 Wednesday 26th September, 2007
-
I have to input a year so that it will show the month and day of Easter of that year. Professor provided these to calculate it. [edit] Than just below, he said: Use individual functions to calculate each of the values I don't get what he means by that. I can easily use the calculations as an assignment statement, but as a function? Am I understanding him correctly? -- modified at 5:03 Wednesday 26th September, 2007
imagine what the forum would become if every of your classmates were asking for help about this homework... :zzz:
[VisualCalc][Binary Guide][CommDialogs] | [Forums Guidelines]
-
imagine what the forum would become if every of your classmates were asking for help about this homework... :zzz:
[VisualCalc][Binary Guide][CommDialogs] | [Forums Guidelines]
They are in the class or different classes?;)
-
I have to input a year so that it will show the month and day of Easter of that year. Professor provided these to calculate it. [edit] Than just below, he said: Use individual functions to calculate each of the values I don't get what he means by that. I can easily use the calculations as an assignment statement, but as a function? Am I understanding him correctly? -- modified at 5:03 Wednesday 26th September, 2007
I guess: int GetEasterDay(int Year){/*Do compute*/} int GetEasterMonth(int Year){/*Do compute*/} He wants that you make some homeworks. I think thats really OK :-O Please read an beginner book about programming like "C++ for Dummies". This give you an overview.:rolleyes:
Greetings from Germany
-
I guess: int GetEasterDay(int Year){/*Do compute*/} int GetEasterMonth(int Year){/*Do compute*/} He wants that you make some homeworks. I think thats really OK :-O Please read an beginner book about programming like "C++ for Dummies". This give you an overview.:rolleyes:
Greetings from Germany
-
I have to input a year so that it will show the month and day of Easter of that year. Professor provided these to calculate it. [edit] Than just below, he said: Use individual functions to calculate each of the values I don't get what he means by that. I can easily use the calculations as an assignment statement, but as a function? Am I understanding him correctly? -- modified at 5:03 Wednesday 26th September, 2007
What are you doing taking a class (presume it's programming) when you can even be bothered using google or buying a book and learning a few things yourself ? How can you not know what a function is ? ANY basic book/webpage will tell you this.
Jonathan Wilkes Darka[Xanya.net]
-
I have to input a year so that it will show the month and day of Easter of that year. Professor provided these to calculate it. [edit] Than just below, he said: Use individual functions to calculate each of the values I don't get what he means by that. I can easily use the calculations as an assignment statement, but as a function? Am I understanding him correctly? -- modified at 5:03 Wednesday 26th September, 2007
MoboTech wrote:
...it will show the month and day of Easter of that year.
Since Easter occurs at some point between late March and late April each year, and it follows the cycle of the moon, how are you calculating this? Of course, tables up to 2020 (and possibly beyond) do exist.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne