Question: I want this program in Java please ADVD movie consists of a title, a rating (e.g. PG, R, etc.), and a running time in minutes

I want this program in Java please

I want this program in Java please ADVD movie consists of atitle, a rating (e.g. PG, R, etc.), and a running time inminutes In this project, you will create an application to allow theuser to maintain a collection of DVD movies using an array. When

ADVD movie consists of a title, a rating (e.g. PG, R, etc.), and a running time in minutes In this project, you will create an application to allow the user to maintain a collection of DVD movies using an array. When the application starts up, it will read in the DVD data from a text file to initialize the array, if the file is available. If the file is not there, then the program starts with an empty array. If the file is corrupted (has an invalid or missing value), then the program stops its initialization at the point of the error The data file should contain one DVD per line, with title followed by rating followed by running time in minutes, all separated by commas. You may assume titles are all in uppercase and do not contain commas. For example ANGELS AND DEMONS, PG-13,138 STAR TREK, R,127 UP, PG, 96 The titles may not be in alphabetical order, but the DVDs should be inserted into the array in alphabetical order The application will then allow its user to perform the following operations * ADD OR MODIFY DVD - The user will be prompted to enter the title, rating and running time (in minutes) for a DVD. If the title is already in the array, then the rating and running time are updated to the supplied values. If the title is not in the array, a DVD is added to the array so that the array is sorted by title. Convert all titles to uppercase only. Titles have to match exactly (in uppercase). If the user enters an invalid rating, the collection should not change. (Valid ratings are G, PG, PG-13, R, and NC-17.) If the user enters an invalid running time (non-positive or non- integer), the collection should not change. REMOVE DVD - The user will be prompted to enter the title of a DVD If the title is in the array, then the DVD is removed, shifting subsequent

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!