Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Implement in JAVA Its just a notepad text file. Assume that a list of movies produced in different years are listed in a text file.

Implement in JAVA

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

Its just a notepad text file.

Assume that a list of movies produced in different years are listed in a text file. Assume that the name of the text file is "movies.txt (Please note that | added an additional field uniquely identifying the movie) For example, here is some set of movies. Please feel to add, change, edit the test data. 1, West Side Story, 1961 2, Alladin, 2019 3, Airport, 1970 4, Red Sun, 1971 5, Solaris, 1971 6, Tenet, 2020 Assume that there exists another file called "songs.txt" containing the list of songs for different movies. Please note that some movies may not have any songs in it. For example, here is some sample data for songs.txt" (1st field = movie_id, 2nd field = song_id, 3rd field = sont title) 1,1, Overture 1,2, Prologue 1,3, Jet Song 1,4, Something's Coming 1,5, Dance at the Gym 2,1, Arabian Nights 2,2, One Jump Ahead 2,4, Speechless 2,5, Friend Like Me You will write a program To read both the text files To construct a movie object with four fields (id, name, year_made and songs_list). Note that songs_list is a collection (ArrayList). To construct a collection of movies (ArrayList) To ask the user for inputting a movie id To display the movie details and the songs list for the given movie_id Movie Collection Movie Song movieList: ArrayList movie_id: int Name: String Year_made: int songs_list: ArrayList movie_id: int Name: String Year_made: int songs_list: ArrayList

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

The Manga Guide To Databases

Authors: Mana Takahashi, Shoko Azuma, Co Ltd Trend

1st Edition

1593271905, 978-1593271909

More Books

Students also viewed these Databases questions

Question

What are the Five Phases of SDLC? Explain each briefly.

Answered: 1 week ago

Question

How can Change Control Procedures manage Project Creep?

Answered: 1 week ago