The month will be one of he words january february the


The month will be one of he 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 number. 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 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:

Enter date to be converted:   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 uset, and then use the substring method to extract them.

Solution Preview :

Prepared by a verified Expert
Business Management: The month will be one of he words january february the
Reference No:- TGS02760056

Now Priced at $10 (50% Discount)

Recommended (94%)

Rated (4.6/5)