Question: Your task for this assignment is to create, in C89, a program to produce a formatted TV guide from raw input data. Each TV guide

Your task for this assignment is to create, in C89, a program to produce a formatted TV guide from raw input data.

Each TV guide entry represents one TV show, and contains the following information:

Name the name of the show.

Day the day of the week (Monday, Tuesday, etc.).

Time the time of day at which the show is aired.

. Your program should accept two command-line parameters: the names of the input and output files. 2. Your program should then read two strings from the user: A day of the week "Monday", "Tuesday", "Wednesday", etc. A sorting method "time" or "name". You should perform input validation. That is, your program should continue to request input until it receives a valid value. 3. Your program should then read the specified input file (whose format is given below). Each TV guide entry should be placed in a suitable structure and stored in a generic linked list. 4. Once all the input has been read, your program should copy the contents of the linked list to a dynamically-allocated array. 5. Your program should then sort the array of TV guide entries, either by time (chronologically) or name (alphabetically), depending on what the user has requested (in step 2). You should use the standard C qsort() function (see below for details). 6. Your program should filter the TV guide entries. Before filtering, the data will contain entries from across the whole week. After filtering, the data will contain only entries for the requested day (from step 2). 7. Your program should display the filtered, sorted TV guide on the screen and also write the same information to the specified output file.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!