Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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

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

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

Accounting And Auditing Research And Databases Practitioner's Desk Reference

Authors: Thomas R. Weirich, Natalie Tatiana Churyk, Thomas C. Pearson

1st Edition

1118334426, 978-1118334423

More Books

Students also viewed these Databases questions

Question

What are the sources of data for sentiment analysis?

Answered: 1 week ago

Question

Q.1. Taxonomic classification of peafowl, Tiger and cow ?

Answered: 1 week ago

Question

Q .1. Different ways of testing the present adulterants ?

Answered: 1 week ago

Question

Q.1. Health issues caused by adulteration data ?

Answered: 1 week ago