In java:

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

In java:

Post by answerhappygod »

In java:
In Java 1
In Java 1 (42.79 KiB) Viewed 24 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.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply