subject
Computers and Technology, 08.03.2021 19:10 ava1018

For this programming assignment you will be re-using portions of your code from the last assignment as a starting point. You are to create a new DateFileTest class that uses the existing Date Class for the following: Instead of bringing in dates from a user, you will be bringing in dates from a text file. You should use the existing Date class to create date objects from file inputs The data in the file is provided in alternating formats in order from MM/DD/ to Month name, DD, (just those two formats to simplify the input handling and verification). Spaces are used in the file as delimiters between integers and strings in the date format. You will use the file provided here:. Dates in multiple formats.
8 17 1943 April 1 1985 4 27 2010 September 27 2005 12 13 2001 June 5 1075 11 25 1974 December 11 2004 21 14 1980
Your code is to handle exceptions for the following situations;
the file is not found or can't be opened, in which case the program informs the user and ends.
the month is not a valid month (between 1-12), using a try/catch block
the year is not a valid year (assume between 1800-2020 is valid, using a try/catch block)
the entry is not a valid month name (must start with a capital and be spelled correctly as a string)
If any of these exceptions occur, your program must disregard that specific date, output an error message to the display, NOT write that specific date to the file, and continue to move on to process the rest of the data in the file
Your program will create a new text file and write dates out to that file. You will write out all 3 formats (with appropriate / and , delimiters) to the file for each date read in from the file.
Your program files must include a program header that includes your name, course discussion section, and program description. Well structured and commented code are expected. Your submission must include all program files, output text file, and execution screenshots showing your messages from error handling. Submissions without all the files will not receive a grade and no late submissions will be accepted.
CODING IS BASED IN JAVA!
PLEASE POST THE OUTPUT!

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 19:20
Terri needs to insert a cover page into her document. where should she go to access the commands to do so? o insert tab, objects group o insert tab, illustrations group o insert tab, pages group o insert tab, media group submit
Answers: 1
question
Computers and Technology, 23.06.2019 03:00
What are the different parts of computer
Answers: 2
question
Computers and Technology, 23.06.2019 14:30
Select the correct answer. sean is a computer programmer. he has programmed an application for toddlers that plays nursery rhymes. however, a logic error has occurred in the program. which problem is a likely consequence of the error? a. the program crashes every time the user wants to play the nursery rhymes. b. the program crosses its buffer boundaries and overwrites an adjacent program. c. the program plays a different nursery rhyme than the one the user intended to play. d. the program shows different structures in its programming language code. e. the program introduces new viruses every time the user plays a nursery rhyme.
Answers: 1
question
Computers and Technology, 23.06.2019 16:00
Which analyst position analyzes information using mathematical models to business managers make decisions?
Answers: 1
You know the right answer?
For this programming assignment you will be re-using portions of your code from the last assignment...
Questions
question
Biology, 08.12.2020 03:00
question
Mathematics, 08.12.2020 03:00
question
Mathematics, 08.12.2020 03:00
question
English, 08.12.2020 03:00
question
Mathematics, 08.12.2020 03:00
Questions on the website: 13722367