Question: in java Objective Your program should prompt the user to enter two years as input. The minimum and maximum years to be included are 1500

in java
in java Objective Your program should prompt the user to enter two

Objective Your program should prompt the user to enter two years as input. The minimum and maximum years to be included are 1500 and 2020, like last time. You will use a for loop to loop through each year between (and including) the years the user inputs. You'll check each year and print out a message for each leap year found. In order to check each year, you will create a new function called checkLeapYear. This is where you'll want to check individual years. You'll want to pass in one year to that function, and check if it's a leap year. You'll print a message from checkleapYear for each leap year found. Instructions Note that the logic to check for a leap year should now be in a separate function (not the main() function). main() function will take the input from the user Use a for loop to go through each year requested by the user, using the first input from the user as the first year, and the second input from the user as the last year to check. Pass each year you check to the checkl.capYear) function. The checkLeapYear() function will check a single year given to it, and print out a message if the year is in fact a leap year. No return value is required, but if you wish to use one you may. If the year checked is not a leap year, you DONT have to print out a message for it. You are only required to print out a message for a leap year. Use a counter based for loop to solve the problem. Use the following code snippet as a guide: public statle vold moin(String() args) //use Scanner to get user Enput for( ) checkleapYear(someYear); //end loop //end matn wold checkteapYear(int some Year) /Leap year checks go here. J//end funcrion

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!