Page 1 of 1

In java:

Posted: Tue Jul 12, 2022 8:16 am
by answerhappygod
In java:
In Java 1
In Java 1 (42.79 KiB) Viewed 25 times
Question 1 Unlimited tries S (Days of a month) Write a program that prompts the user to enter a year and the first three letters of a month name (with the first letter in uppercase) and displays the number of days in the month. If the input for month is incorrect, display a message as shown in the following sample run. Sample Run 1 Enter a year: 2001 Enter a month: Jan Jan 2001 has 31 days Sample Run 2 Enter a year: 2016 Enter a month: Feb Feb 2016 has 29 days Sample Enter a year: 2016 Enter a month: jan jan is not a correct month name Class Name: Exercise04_17 If you get a logical or runtime error, please refer https://liveexample.pearsoncmg.com/faq.html.