Question: java loop question 0/ Assignments-. COMPUTER /XY 9 Program.pdf eduardo Assignments-. COMPUTER C yProgram 1.pdf C Secure https://blackboard.kean.edu/bbcswebdav/pid-717865-dt-content-rid-2744692_1/courses/18SP CPS 2231 06/Program1.pdf Write a Java Class
java loop question


0/ Assignments-. COMPUTER /XY 9 Program.pdf eduardo Assignments-. COMPUTER C yProgram 1.pdf C Secure https://blackboard.kean.edu/bbcswebdav/pid-717865-dt-content-rid-2744692_1/courses/18SP CPS 2231 06/Program1.pdf Write a Java Class that computes and prints all the leap years between a starting and ending year. A year is a leap year if it meets one of the two conditions below A year is a leap year if it is divisible by 4 and not divisible by 100 (For example, 1980) A year is a leap year if it is divisible by 400 (for example, 2000) Write a program that does the following 1. Prompts the user for the starting year 2. Prompts the user for the ending year 3. Prints all the leap years between the start year and the ending year separated by a space 4. Ten years or less will be printed on each separate line of output 5. At the end, the program will print the total number of leap years between the start and end years entered by the user Enter the starting year 1900 Enter the ending year 2000 1904 1908 1912 1916 1920 1924 1928 1932 1936 1940 1944 1948 1952 1956 1960 1964 1968 1972 1976 1980 1984 1988 1992 1996 2000 There are 25 years between 1900 and 2000 Use a good sample of values to test your program. This site might be useful for testing: Please note the following requirements and how the assignment will be graded
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
