Question: Problem Statement: Write a Java program that prompts the user to enter the month and year, and displays the number of days in the month.

Problem Statement: Write a Java program that prompts the user to enter the month and year,
and displays the number of days in the month.
For example:
For month 2 and year 2000, the program should display that February 2000 has 29 days;
For month 3 and year 2005, the program should display that March 2005 has 31 days;
For month 2 and year 2020, the program should display that February 2000 has 29 days.
The Java program should implement an interactive dialog that prints a program title, prompts the
user to enter a month number and a year, and computes and displays results.
The interactive input/output should be the following:
Student name:
CIS 225 Introduction to Programming
Programming Assignment 4
Due Date: March 12,2024
Instructor: Dr. Lomako
Enter a month number in the year (e.g.,1 for Jan): 2
Enter a year: 2020
February 2020 has 29 days
Submit your homework as HW4_YourLastName.zip file which includes the folder
HW4_YourLastName with the following files:
assignment report file: HW4_Report_LastName.doc
programs source file: HW4_LastName.java
programs bytecode file: HW4_LastName.class

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!