Question: use Netbeans Write a program that prompts the user to enter the month and the year and displays the number of days in any of

 use Netbeans Write a program that prompts the user to enter
use Netbeans

Write a program that prompts the user to enter the month and the year and displays the number of days in any of the 12 months. Include the month name in the output. For example, if the user enters a month of 1 and the year 2020, the output will be: January has 31 days. If the user enters a month of 2 and a year of 2020, the output will be: February has 29 days If the user enters a month of 2 and a year of 2019, the output will be: February has 28 days. Use (year %4 ==0) to see if the year is evenly divisible by 4 and hence a leap year

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!