Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In java File name: Interest.text Watching CBS20 ABC22 Wishlist ABC2030 PBS21 CBS22 File name: TVGuide.text ABC21 Modern_Family S 21.00 E 21.30 PBS21 Wonders_Of_Mexico S 21.00

In java

image text in transcribedimage text in transcribedimage text in transcribedimage text in transcribedimage text in transcribed

File name: Interest.text

Watching CBS20 ABC22 Wishlist ABC2030 PBS21 CBS22

File name: TVGuide.text

ABC21 Modern_Family S 21.00 E 21.30

PBS21 Wonders_Of_Mexico S 21.00 E 22.00

FOX21 Gordon_Ramsay's_24_Hours_To_Hell_And_Back S 21.00 E 22.00

NBC21 World_Of_Dance S 20.00 E 22.00

ABC2130 American_Housewives S 21.30 E 22.00

CBS22 Criminal_Minds S 22.00 E 23.00

ABC22 Shark_Tank S 22.00 E 23.00

"Television is an invention that permits you to be entertained in your living room by people you wouldn't have in your home." -- David Frost Judge Judy Cyclist in the Ped Crossing Smashl; Neighbor From 00-3:30 PM 1 6WITIOT TIPE SD e 1521, E19) 2016 An SUN driver hits a bicycdist in a crosswalk a single father says a neighbor gave him a car to. On Demand 3:22 3:30 PM CO1 On Demand On Demi CO w The List RightThisMin TODAY'S TMTODAY'S TNTODAY RoR C06Judge Judy ludge judy Fox 6 News at 4 SEN Fox 6 08w The People's Court Mike & Molly Mike&Molly Modern I C09w Dr. Phill CBS 58 News at 4pm W CBS 5 O 010 Odd Squad Odd Squad Wild KrattsArthur (TVGuide Image from spectrum.net) Watching televison these days is pretty easy with the advent of internet tv. We no longer need a TV guide to keep track of which shows are when. We can record them to watch when we please or even better just stream them whenever and wherever. A few years ago, this was not the case. TVGuides were very much a necessity to know what's playing when. This would then allow people to choose the shows that they want to watch over the others. As an example, CBS brodcasts Criminal Minds at 10pm and ABC brodcasts Shark Tank at the same time As such, it is impossible to watch both the shows. On the other hand, ABC brodcasts Modern Family at 9.30pm and therefore, one can watch both Shark Tank as well as Modern Family. In this assignment, you will design and implement a TVGuide which will determine if a user can watch a specific show based on shows he/she is currently watching. You are given two files, namely, TVGuide.txt containing information about various TV shows, and Interests.txt which contains information about the shows a user is interested in. You will parse these files to extract TV shows information and will produce an outcome for each of the show a user wants to watch. The outcome for each show could be one of the below mentioned options where X represents showID, S represents start time and E represents end time a) User can watch show X as he/she is not watching anything else during that time b) User can't watch show X as he/she is not finished with a show he/she is watching. c) User can't watch show X as he/she will begin another show at the same time You can assume that every show will be minimum half an hour long and maximum one hour long. You can also assume that the shows will be listed in a sorted manner based on their start time. Interests.txt will contain a word "Watching" on first line, followed by showID of the shows he/she is currently watching Another word "Wishlist" after the above information followed by the respective showIDs. TVGuide.txt will contain show|D along with show name (one word seperated by-). Next two lines will have S and E indicating start time and end time respectively for this show. This set of information is repeated for all the available shows. A sample TVGuide.txt file is depicted in Figure 1 and a sample Interest.txt is depicted in Figure 2. A detailed description of all the details that you have to implement for this assignment is made avaialble after these two figures

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

Step: 3

blur-text-image

Ace Your Homework with AI

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

Get Started

Recommended Textbook for

Fundamentals Of Database Systems

Authors: Sham Navathe,Ramez Elmasri

5th Edition

B01FGJTE0Q, 978-0805317558

More Books

Students also viewed these Databases questions

Question

Define the term operations management.

Answered: 1 week ago

Question

Describe Table Structures in RDMSs.

Answered: 1 week ago