Write a program that asks the user for a year and computes


A year with 366 days is called a leap year. A year is a leap year if it is divisible by 4 (for example, 1980). However, since the introduction of the Gregorian calendar on October 15, 1582, a year is not a leap year if it is divisible by 100 (for example, 1900); however, it is a leap year if it is divisible by 400 (for example, 2000). Write a program that asks the user for a year and computes whether that year is a leap year. Implement a class Year with a predicate method boolean isLeapYear().

Request for Solution File

Ask an Expert for Answer!!
Basic Computer Science: Write a program that asks the user for a year and computes
Reference No:- TGS01716501

Expected delivery within 24 Hours