Question: JAVA CODE This program outputs all of the correct responses for inputs except for 1 9 0 0 . It reads this as

JAVA CODE
This program outputs all of the correct responses for inputs except for "1900". It reads this as a leap year even though it is not. This input should be false through the condition (inputYear %400==0) but the program still reads it as true. What is wrong with the code?
 JAVA CODE This program outputs all of the correct responses for

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!