Question: java program Upload Assignment: ch3-revex y D ch3-review program.pdf D Microsoft word-ch5lab3.doc eduardo C Secure https://blackboard.kean.edu/bbcswebdav/pid-662239-dt-content-rid-2421083_1/courses/17FA CPS 1231 01/ch3-review program.pdf 1. Leap Year A year
java program
Upload Assignment: ch3-revex y D ch3-review program.pdf D Microsoft word-ch5lab3.doc eduardo C Secure https://blackboard.kean.edu/bbcswebdav/pid-662239-dt-content-rid-2421083_1/courses/17FA CPS 1231 01/ch3-review program.pdf 1. Leap 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) Use this information to write the program. 1) Create a Scanner 2) Declare a variable: year 3) Ask the user to enter a year 4) Using the information above, print a message stating whether the year is a leap year or not. Enter the year 2000 2000 is a leap year Enter the year 1996 1996 is a leap year Enter the year 1900 1900 is not a leap year
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
