Question: Problem Description Problem 1- Display all the leap years The calendar we are using now is the Gregorian calendar from 1582 A year is a
Problem Description Problem 1- Display all the leap years The calendar we are using now is the Gregorian calendar from 1582 A year is a leap year if A year is divisible by 4, but not by 100, or A year is divisible by 400 Requirements: Use either while loop or for loop to display all the leap years from year 1582 to the year from the user input. Create a flowchart of your program design. Use pseudo code to describe each step in your code. Check the input that should be larger than 1582, if not, prompt for asking a correct year until a correct input. 1. 2. 3. 4. 5. You should use Scanner to take the input year 6. The format of the result will be one leap year in a line such as, Leap years from year 1582 to 1600: 1584 1588 - 1592 1596 1600
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
