Home‎ > ‎ICT Programming‎ > ‎Java‎ > ‎

Leap Year - Final Project

  1. Open BlueJ.
  2. Click on New Class. 
  3. Use LeapYear as the name of your class.  

A year with 366 days is called a leap year. Usually years that are divisible by 4 are leap years, for example, 1996. However, years that are divisible by 100 are not leap years, unless the year is also divisible by 400. Write a program that asks the user for a year and computes whether the year is a leap year. Use an appropriate print statement to display the result of the computation. 

Resource - Using and Comparing "If" statements



Comments