subject

Complete main() to read dates from input, one date per line. Each date's format must be as follows: 03/20/1990. Any date not following that format is incorrect and should be ignored. (Assume that days and months are always given with two digits, for example 03 instead of 3.) Use the substring() method to parse the string and extract the date. The input ends with END on a line alone. Output each correct date as: March 20, 1990. Ex: If the input is:
03/20/1990
April 2 1995
07/05/2020
December 13,
END 00
Then the output is:
March 20, 1990
July 5, 2020

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 01:30
Jason works as an accountant in a department store. he needs to keep a daily record of all the invoices issued by the store. which file naming convention would him the most? a)give the file a unique name b)name the file in yymmdd format c)use descriptive name while naming the files d)use capital letters while naming the file
Answers: 3
question
Computers and Technology, 23.06.2019 05:00
Jason works as an accountant in a department store. he needs to keep a daily record of all the invoices issued by the store. which file naming convention would him the most?
Answers: 2
question
Computers and Technology, 24.06.2019 01:30
Hazel has just finished adding pictures to her holiday newsletter. she decides to crop an image. what is cropping an image?
Answers: 1
question
Computers and Technology, 24.06.2019 02:20
The first time a user launches the powerpoint program, which view is shown allowing the user to access recent presentations or create new presentations based on templates?
Answers: 1
You know the right answer?
Complete main() to read dates from input, one date per line. Each date's format must be as follows:...
Questions
question
Advanced Placement (AP), 05.02.2021 21:40
question
Mathematics, 05.02.2021 21:40
question
Mathematics, 05.02.2021 21:40
question
Mathematics, 05.02.2021 21:40
question
Chemistry, 05.02.2021 21:40
Questions on the website: 13722360