Design and implement Java program as follows: 1) Media hierarchy:  Create Media, EBook, MovieDVD, and MusicCD classes from Week 3 -> Practice Exercise - Inheritance solution.  Add an attribute to Media class to store indication when media object is rented versus available. Add code to constructor and create get and set methods as appropriate.  Add any additional constructors and methods needed to support the below functionality 2) Design and implement Manager class which (Hint: check out Week 8 Reading and Writing files example):  stores a list of Media objects  has functionality to load Media objects from files  creates/updates Media files  has functionality to add new Media object to its Media list  has functionality to find all media objects for a specific title and returns that list  has functionality to rent Media based on id (updates rental status on media, updates file, returns rental fee) 3) Design and implement MediaRentalSystem which has the following functionality:  user interface which is either menu driven through console commands or GUI buttons or menus. Look at the bottom of this project file for sample look and feel. (Hint: for command-driven menu check out Week 2: Practice Exercise - EncapsulationPlus and for GUI check out Week 8: Files in GUI example)  selection to load Media files from a given directory (user supplies directory)  selection to find a media object for a specific title value (user supplies title and should display to user the media information once it finds it - should find all media with that title)  selection to rent a media object based on its id value (user supplies id and should display rental fee value to the user)  selection to exit program 4) Program should throw and catch Java built-in and user-defined exceptions as appropriate 5) Your classes must be coded with correct encapsulation: private/protected attributes, get methods, and set methods and value validation 6) There should be appropriate polymorphism: overloading, overriding methods, and dynamic binding 7) Program should take advantage of the inheritance properties as appropriate

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

Design and implement Java program as follows:
1) Media hierarchy:
 Create Media, EBook, MovieDVD, and MusicCD classes from Week 3 -> Practice
Exercise - Inheritance solution.
 Add an attribute to Media class to store indication when media object is rented versus
available. Add code to constructor and create get and set methods as appropriate.
 Add any additional constructors and methods needed to support the below
functionality
2) Design and implement Manager class which (Hint: check out Week 8 Reading and Writing
files example):
 stores a list of Media objects
 has functionality to load Media objects from files
 creates/updates Media files
 has functionality to add new Media object to its Media list
 has functionality to find all media objects for a specific title and returns that list
 has functionality to rent Media based on id (updates rental status on media, updates
file, returns rental fee)
3) Design and implement MediaRentalSystem which has the following functionality:
 user interface which is either menu driven through console commands or GUI buttons
or menus. Look at the bottom of this project file for sample look and feel. (Hint: for
command-driven menu check out Week 2: Practice Exercise - EncapsulationPlus and
for GUI check out Week 8: Files in GUI example)
 selection to load Media files from a given directory (user supplies directory)
 selection to find a media object for a specific title value (user supplies title and should
display to user the media information once it finds it - should find all media with that
title)
 selection to rent a media object based on its id value (user supplies id and should
display rental fee value to the user)
 selection to exit program
4) Program should throw and catch Java built-in and user-defined exceptions as appropriate
5) Your classes must be coded with correct encapsulation: private/protected attributes, get
methods, and set methods and value validation
6) There should be appropriate polymorphism: overloading, overriding methods, and dynamic
binding
7) Program should take advantage of the inheritance properties as appropriate

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Follow-up Questions
Read through expert solutions to related follow-up questions below.
Follow-up Question

What did the .txt file look like?

Solution
Bartleby Expert
SEE SOLUTION
Knowledge Booster
Software Development
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education