Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

CS 2401 - Elementary data structures and algorithms Lab: 4 Spring 2024 Due Date: Sunday, February 18 - end of the day. Objective: The goal

CS 2401 - Elementary data structures and algorithms\ Lab: 4\ Spring 2024\ Due Date: Sunday, February 18 - end of the day.\ Objective: The goal of this assignment is to practice with linked list\ Background: You are going to implement a code that prints and manipulates a Linked List based on the input file of a database of films.\ The information of each movie is stored in a text file. Each line in the file contains the title and director of a film, the genre, the release year of the film, and its rating. The information is tab-separated and does not contain headers. A sample input file is shown below.\ \\\\table[[Title,Director,Genre,\\\\table[[Release_Yea],[

r
image text in transcribed
Lab: 4 Spring 2024 Due Date: Sunday, February 18 - end of the day. Objective: The goal of this assignment is to practice with linked list Background: You are going to implement a code that prints and manipulates a Linked List based on the input file of a database of films. The information of each movie is stored in a text file. Each line in the file contains the title and director of a film, the genre, the release year of the film, and its rating. The information is tab-separated and does not contain headers. A sample input file is shown below. Assignment: Your program should assume that the content is written in a file named input.txt. Each film must be considered an object. Your program should be able to print, add, delete and manipulate the linked list. The partially written program file (the Java file containing the main method) is provided in a file named Lab4.java as well as the class "Film". The instructions are provided as comments in the code. Lab4.java is provided with the assignment. Complete the following methods (do not change the method header) The recommended order for completing the methods are as follows: static getFilmFromDataFile (String fileName)\{ public static Film addFilm(Film head, Film newFilm, int position) \{ public static Film deleteFilm (Film head, int position) \{ public static void bestRated (Film head) \{ public static void oldestRelease (Film head) \{ To Chegg: Please do not provide solution if this document is uploaded. Please remove this document from Chegg, if uploaded

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

Databases And Python Programming MySQL MongoDB OOP And Tkinter

Authors: R. PANNEERSELVAM

1st Edition

9357011331, 978-9357011334

More Books

Students also viewed these Databases questions

Question

Find the perimeter and area of the figure. 6 ft 10 ft 8 ft

Answered: 1 week ago