Question: View, | Enable Editing EGR 140: Computer Programming Assignment#5: Assigned: Wednesday, 6 September 2017 Due: Monday, 11 September 2017 Points: 20 Write an error-free Java

 View, | Enable Editing EGR 140: Computer Programming Assignment#5: Assigned: Wednesday,
6 September 2017 Due: Monday, 11 September 2017 Points: 20 Write an

View, | Enable Editing EGR 140: Computer Programming Assignment#5: Assigned: Wednesday, 6 September 2017 Due: Monday, 11 September 2017 Points: 20 Write an error-free Java program to do the following things. 1. Inputs the month (I for Jan, 2 for Feb, etc.), day of the month and the year. The program can ask the user for the month/day/year in any order The program should inform the user when a valid date has been entered. You may assume that the user will (correctly) enter integers but the inputs may be negative, too small or too big. If an invalid date has been entered, then print a brief message explaining the problem and the program terminates gracefully. For the purposes of this program you may assume that February has 28 days each year, even during leap years. (I know that this does not agree with the calendar, but it will simplify your program. Trust me on this.) 2 3. If the entered date is a valid date, the program informs the user whether the date is part of a new century. That is, the program prints a "Welcome to the new Century" any time the year is a multiple of 100 (1900, 2000, 2100, 2200 etc.). You can assume that the year will - be greater than 1 but less than 3100 for this step. Sample output (2 separate computer runs): Input day: 31 Input day: 30 >>| Input month (1 -Jan, 2 = Feb, etc): 2 >>| Input month (1 -Jan, 2 = Feb, etc): 8

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!