Write a java program that asks the user to input a year


Write a Java program that asks the user to input a year number in the 21st century (such as 2016, 2023, or 2090). Print a message to tell the user that whether the year is a leap year, and how many days in February of this year. PS: A leap year comes every 4 years, and contains one additional day in February. For example, 2000, 2004, 2008, 2012 and 2016 are all leap years, and February in these years has 29 days; but 2001, 2002, 2006, 2011 and 2035 are not leap years, and February in these years only has 28 days.Include related comments in the code.

Solution Preview :

Prepared by a verified Expert
Basic Computer Science: Write a java program that asks the user to input a year
Reference No:- TGS01658740

Now Priced at $10 (50% Discount)

Recommended (98%)

Rated (4.3/5)