Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

This is to be in java Write a program named ConvertDate that converts a date ent

ID: 3717730 • Letter: T

Question

This is to be in java

Write a program named ConvertDate that converts a date entered by the user into another form. The user's input will have the form month day, year The month will be one of the words January, February, . The letters in the month may be lowercase, uppercase, or any mixture of the two. The day is a one- or two-digit num- ber. The year is any number of digits. There may be any number of spaces (1) before the month, (2) between the month and the day, (3) between the day and the year, and (4) after the year. You may assume that there is at least one space between the month and day and between the day and year. You may also assume that there is a comma after the day. The converted date must have the form day month year with one space between the day and month and between the month and year. The first letter of the month must be uppercase, and the remaining letters must be lowercase. The following example shows what the user will see on the screen: apRiL 28, 2003 Converted date: 28 April 2003 Hint: Use the indexOf and lastIndexof methods to locate the month, day, and year within the string entered by the user, and then use the substring method to extract them.

Explanation / Answer

Please find my code.

Output:

Enter date to be converted: April 22, 2017


Converted date: 22 April 2017


Process finished with exit code 0

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote