Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

As you can see below, the inpot flie, input.tur coosests of the names, nurnames, and burthdates of the players. In the input file, if the

image text in transcribed
image text in transcribed
As you can see below, the inpot flie, input.tur coosests of the names, nurnames, and burthdates of the players. In the input file, if the months entered are incornew, you lave to check this wifuation by using Evcention. Honditing, and you should try to conect the moerh To correct the month, check the fins 3 charactern, if it mutches one of the 12 months, correct it. (Hint: You can wse the subotr) function to check the first 3 charactarn) Create an output file named output.tat for all the cortect er conected iapots. Use composition to create two clasest Date and Plager: Use monther initiatitation for the classes' construckors asignthenbs. printlinfon function, has to priar the first name, last name, birthale dry, month, and year of the player In the main function. Your program should input each line from the input file input tot, and using Eicgrion Hendiliss, check the month. Create try-eatch block for the monch. Yee hane to control the asonth' s writing and then if it is not cotrect you should print the incorroctly calered maneth ce the seren. In short, if exiceptions are thrown, for the catch, try so cornoxt the moeth asconding to the first 3 characters. If you can correct the moenth, output the correctod information eeto the output file. In your catch block, you should create an obyect fion the Plyyer dias. A sample output of the catch routines will be as follows: Incorrectly inputted nonth:Sepsenber is corrected to Septetioer Incorrectly inputted nonth:Feaury is corrected to Fetanuary incorrectly inputted nonth:Decmber is corrected to Decenber Incorrectly inputted nonth:0ctber is corrected to Octoteer Incorrectly ingutted nonth:Aprl is corrected to April The cradinc of the homework will be based on: 1. You have to ypload your homework on time on Moodle 2. Your file should be in the format thar yournume,_surname_hwi. cpe 3. Please do not upload exe fle, otherwise you will get seno. 4. Homework submitted via e-mail will be ignoted. 5. Thin is not Eroup work, so if anyone cheats or has a high ilimily percentage fabeve 90x1. will get zero. 6. If your tode does not compie, your program will be evaluated ever so sta. 7. Late submissions will not be gaded

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

Describe the five elements of the listening process.

Answered: 1 week ago