Question: Please help by using JAVA and make it clear for me to understand. Thanks! Abstract This lab is an exercise that goes over if/else statements

 Please help by using JAVA and make it clear for me
to understand. Thanks! Abstract This lab is an exercise that goes over
if/else statements or switch state- ments, modular arithmetic, String indices, converting Strings
Please help by using JAVA and make it clear for me to understand. Thanks!

Abstract This lab is an exercise that goes over if/else statements or switch state- ments, modular arithmetic, String indices, converting Strings to integers. It is adapted from Savitch's Java book. 1 Assignment Write a program that, given a string as an input, tests if the given string is a valid date in the Gregorian Calendar. Your program should output whether the given date is a valid. If the given date is not valid, report why Dates in the US are formatted MM DD/YYYY . Valid months are in the range [1, 12. September, April, June, and November each have 30 days. All other months but February have 31 days. February has 28 days, ercept on a leap year, where it has 29. Leap years are not as easy as you think. - A year not divisible by 4 is a normal year. - A year divisible by 4 is a leap year except. - A year divisible by 100 is not a leap year except... - A year divisible by 400 is a leap year. For example: * 1644 is a leap year * 1645 is not. * 1600 is a leap year 1700 is not. You will need to think of a way to arrange the logic of these state- ments. Think about different ways to categorize leap years and not leap years. 1This is the most widely used civil calendar and it is the calendar used by the United States. It was commissioned and instituted by Pope Gregory XIII (1572-1585), although number of countries resisted using it well into the 1900s

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!