View Full Version : loops conditionals problem java! HELP T_T

05-03-2008, 12:29 PM
i always get stuck with this kind of question please help me and answer this problem for me. so that i can use it as a guideline.


Write a program that reads in a year value and determines if the year is a leap
year or not. Leap years have 29 days in February. A leap year is a year that
is divisible by 4, unless it is also divisible by 100 but not 400. For example,
2003 is not a leap year, since it is not divisible by 4. The year 1900 is not a
leap year as it is divisible by 100, however the year 2000 is a leap year,
because it is divisible by 400 (as well as 100 and 4). Produce an error
message if the year value is less than or equal to 1582, which is the year our
current calendars were adopted.

05-03-2008, 12:43 PM
Welcome to this forum
Please read the rules,
1.5) No homework assignments - Do not post your entire homework assignment and request that other members do it for you. This is considered cheating, and your thread may even be used by your school to prove your guilt. Now, you may ask for advice or help on a specific aspect of your assignment that you're having trouble with. Use common sense as far as what's acceptable in terms of soliciting help with homework assignments.
And also note that javascript (http://en.wikipedia.org/wiki/JavaScript) is not Java (http://en.wikipedia.org/wiki/Java_(programming_language))