Write the following java program: Define a class DVD which has: String: Title an
ID: 3671855 • Letter: W
Question
Write the following java program:
Define a class DVD which has: String: Title and Genre, int Year and Number_in_Store, Float price. Make the class Serializable. Use a binary file for saving. Write an application that could be used in a store that sells movies. Use an array to store the Videos in. Allow a user to: 1) Enter new videos into the array, 2) Sell a Video to a customer by looking the video up by title and displaying the price, 3) If the customer decides to buy deducts 1 from the number on hand, 4) Add copies of an existing video to the store, 5) Change the price of a video, 6) List all videos in the store and number in Store, 7) Quit. When the user quits the videos are written to a binary file. When the program starts up it prompts the user for a file name and reads the videos from the file. If no file exist it starts with no inventory.
Explanation / Answer
Value = stockedUnits * itemPrice
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.