Answered step by step
Verified Expert Solution
Question
1 Approved Answer
PLEASE HELP IN JAVA PLEASE (20 points) Problem 3-Write a program. MonthsToNumbers.java Write a program that: The program asks the user to specify the name
PLEASE HELP IN JAVA PLEASE
(20 points) Problem 3-Write a program. MonthsToNumbers.java Write a program that: The program asks the user to specify the name of a month. It should not make a difference whether any letter in the name appears in lower case or upper case, all such variations should be accepted by the program. If the user entered correctly the name of a month, the program prints out the month name, and the order of that month in the year (e.g., January is the first month, July is the seventh month, and so on). Note that when the program prints out the month name, the first letter of the month name should be capitalized, and all other letters should be in lower case. If the user enters a name that is not recognized, the program prints out "Unknown month:" and the name entered by the user. Note that the name entered by the user should be printed exactly as entered by the user (with no conversions of any letters to upper or lower case) Example Program Run 1: Please enter the name of a month: juNE June is the sixth month. Example Program Run 2: Please enter the name of a month: SUMmer Unknown month: SUMmer Example Program Run 3: Please enter the name of a month: May May is the fifth monthStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started