Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed
image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Oracle9i Database Administrator Implementation And Administration

Authors: Carol McCullough-Dieter

1st Edition

0619159006, 978-0619159009

More Books

Students also viewed these Databases questions

Question

Know how productivity improvements impact quality and value.

Answered: 1 week ago

Question

Recommend the key methods to improve service productivity.

Answered: 1 week ago