Create as well as implement a Java program that does the following: A) Media hierarchy: ...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Create as well as implement a Java program that does the following: A) Media hierarchy: • Create Media, EBook, MovieDVD, and MusicCD • 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 B) Create as well as implement a Manager class that does the following: • 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) C) Create as well as implement MediaRental System 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. • 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 D) The Program should throw and catch Java built-in and user-defined exceptions as appropriate E) Your classes must be coded with correct encapsulation: private/protected attributes, get methods, and set methods and value validation F) There should be appropriate polymorphism: overloading, overriding methods, and dynamic binding G) Program should take advantage of the inheritance properties as appropriate Sample User interface - command driven: Welcome to Media Rental System 1: Load Media objects... 2: Find Media object... 3: Rent Media object... 9: Quit Enter your selection : 1 Enter path (directory) where to load from: blah File cannot be opened: Could not load, no such directory Welcome to Media Rental System 1: Load Media objects... 2: Find Media object... 3: Rent Media object... 9: Quit Enter your selection : 1 Enter path (directory) where to load from: C:/tmp-umuc Welcome to Media Rental System 1: Load Media objects... 2: Find Media object... 3: Rent Media object... 9: Quit Enter your selection : 2 Enter the title: blah There is no media with this title: blah Welcome to Media Rental System 1: Load Media objects... 2: Find Media object... 3: Rent Media object... 9: Quit Enter your selection : 2 Enter the title: Forever Young EBook [id=123, title=Forever Young, year=2018, chapters=20 available=true] MovieDVD [id=126, title=Forever Young, year=2020, size=140.0MB available=false] Welcome to Media Rental System 1: Load Media objects... 2: Find Media object... 3: Rent Media object... 9: Quit Enter your selection : 3 Enter the id: 123 Media was successfully rented. Rental fee = $2.00 Welcome to Media Rental System 1: Load Media objects... 2: Find Media object... 3: Rent Media object... 9: Quit Enter your selection : 2 Enter the title: Forever Young EBook [id=123, title=Forever Young, year=2018, chapters=20 available=false] MovieDVD [id=126, title-Forever Young, year-2020, size=140.0MB available=false] Welcome to Media Rental System 1: Load Media objects... 2: Find Media object... 3: Rent Media object... 9: Quit Enter your selection : 3 Enter the id: 999 The media object id=999 is not found Welcome to Media Rental System 1: Load Media objects... 2: Find Media object.... 3: Rent Media object... 9: Quit Enter your selection : 9 Thank you for using the program. Goodbye! Sample User interface - GUI: Menu Welcome to Media Rental System Menu Load Media objects... Find Media object... Rent Media object... Quit Welcome to Media Rental System Open 7 Look In: 100 Windows (C:) $GetCurrent Brother cygwin Intel MSOCache PerfLogs Program Files Program Files (x86) | ProgramData Python27 Python36 Python37 sr tmp-umuc Folder name: C:\tmp-umuc Files of Type: All Files Users usr T E 01 Windows Windows.old Windows 10Upgrade Open 0 X 19 Cancel Enter your selection : 2 Enter the title: Forever Young EBook [id=123, title=Forever Young, year=2018, chapters=20 available=true] MovieDVD [id=126, title=Forever Young, year=2020, size=140.0MB available=false] Welcome to Media Rental System 1: Load Media objects... 2: Find Media object... 3: Rent Media object... 9: Quit Enter your selection : 3 Enter the id: 123 Media was successfully rented. Rental fee = $2.00 Welcome to Media Rental System 1: Load Media objects... 2: Find Media object... 3: Rent Media object... 9: Quit Enter your selection : 2 Enter the title: Forever Young EBook [id=123, title=Forever Young, year=2018, chapters=20 available=false] MovieDVD [id=126, title=Forever Young, year=2020, size=140.0MB available=false] Welcome to Media Rental System 1: Load Media objects... 2: Find Media object.... 3: Rent Media object... 9: Quit Enter your selection : 3 Enter the id: 999 The media object id=999 is not found Welcome to Media Rental System 1: Load Media objects... 2: Find Media object.... 3: Rent Media object.... 9: Quit Enter your selection : 9 Thank you for using the program. Goodbye! Sample User interface - GUI: Menu Welcome to Media Rental System Menu Load Media objects... Find Media object... Rent Media object... Quit Welcome to Media Rental System Open 7 Look In: 100 Windows (C:) $GetCurrent Brother cygwin Intel MSOCache PerfLogs Program Files Program Files (x86) | ProgramData Python27 Python36 Python37 sr tmp-umuc Folder name: C:\tmp-umuc Files of Type: All Files Users usr T E 01 Windows Windows.old Windows 10Upgrade Open 0 X 19 Cancel Welcome to Media Rental System Menu Load Media objects... Find Media object... Rent Media object... Quit Welcome to Media Rental System Input ? Menu Menu Enter the title blah Welcome to Media Rental System Message ОК Menu Welcome to Media Rental System Input ? OK Enter the title Forever Young OK Cancel There is no media with this title: blah I Cancel U X X U □ X X X X Message (İ Welcome to Media Rental System Welcome to Media Rental System Menu Load Media objects... Find Media object... Rent Media object... Quit Menu Welcome to Media Rental System Input ? EBook [id=123, title=Forever Young, year=2018, chapters=20 available=true] MovieDVD [id=126, title=Forever Young, year-2020, size=140.0MB available=false] Menu Enter the id 123 OK Welcome to Media Rental System Cancel OK Ок X JX Message i Media was successfully rented. Rental fee = $2.00 X X X X Welcome to Media Rental System Input Menu Message i Input ? Enter the title Forever Young Menu OK Welcome to Media Rental System Enter the title Forever Young OK Cancel Cancel EBook [id=123, title=Forever Young, year=2018, chapters=20 available=false] MovieDVD [id=126, title=Forever Young, year-2020, size=140.0MB available=false] OK Welcome to Media Rental System Message i Invalid title value Above closed the window by pressing the X, results in below: ок 0 X HAR RUNTUN X ZIEME X Create as well as implement a Java program that does the following: A) Media hierarchy: • Create Media, EBook, MovieDVD, and MusicCD • 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 B) Create as well as implement a Manager class that does the following: • 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) C) Create as well as 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. • 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 D) The Program should throw and catch Java built-in and user-defined exceptions as appropriate E) Your classes must be coded with correct encapsulation: private/protected attributes, get methods, and set methods and value validation F) There should be appropriate polymorphism: overloading, overriding methods, and dynamic binding G) Program should take advantage of the inheritance properties as appropriate Sample User interface - command driven: Welcome to Media Rental System 1: Load Media objects... 2: Find Media object... 3: Rent Media object... 9: Quit Enter your selection : 1 Enter path (directory) where to load from: blah File cannot be opened: Could not load, no such directory Welcome to Media Rental System 1: Load Media objects... 2: Find Media object... 3: Rent Media object... 9: Quit Enter your selection : 1 Enter path (directory) where to load from: C:/tmp-umuc Welcome to Media Rental System 1: Load Media objects... 2: Find Media object... 3: Rent Media object... 9: Quit Enter your selection : 2 Enter the title: blah There is no media with this title: blah Welcome to Media Rental System 1: Load Media objects... 2: Find Media object... 3: Rent Media object... 9: Quit Enter your selection : 2 Enter the title: Forever Young EBook [id=123, title=Forever Young, year=2018, chapters=20 available=true] MovieDVD [id=126, title=Forever Young, year=2020, size=140.0MB available=false] Welcome to Media Rental System 1: Load Media objects... 2: Find Media object... 3: Rent Media object... 9: Quit Enter your selection : 3 Enter the id: 123 Media was successfully rented. Rental fee = $2.00 Welcome to Media Rental System 1: Load Media objects... 2: Find Media object... 3: Rent Media object... 9: Quit Enter your selection : 2 Enter the title: Forever Young EBook [id=123, title=Forever Young, year-2018, chapters=20 available=false] MovieDVD [id=126, title=Forever Young, year=2020, size=140.0MB available=false] Welcome to Media Rental System 1: Load Media objects... 2: Find Media object... 3: Rent Media object... 9: Quit Enter your selection : 3 Enter the id: 999 The media object id=999 is not found Welcome to Media Rental System 1: Load Media objects... 2: Find Media object.... 3: Rent Media object.... 9: Quit Enter your selection : 9 Thank you for using the program. Goodbye! Sample User interface - GUI: Menu Welcome to Media Rental System Menu Load Media objects... Find Media object... Rent Media object... Quit Welcome to Media Rental System Open 7 Look In: 100 Windows (C:) $GetCurrent Brother cygwin Intel MSOCache PerfLogs Program Files Program Files (x86) | ProgramData Python27 Python36 Python37 sr tmp-umuc Folder name: C:\tmp-umuc Files of Type: All Files Users usr T E 01 Windows Windows.old Windows 10Upgrade Open 0 X 19 Cancel Enter your selection : 2 Enter the title: Forever Young EBook [id=123, title-Forever Young, year=2018, chapters=20 available=true] MovieDVD [id=126, title=Forever Young, year=2020, size=140.0MB available=false] Welcome to Media Rental System 1: Load Media objects... 2: Find Media object... 3: Rent Media object... 9: Quit Enter your selection : 3 Enter the id: 123 Media was successfully rented. Rental fee = $2.00 Welcome to Media Rental System 1: Load Media objects... 2: Find Media object... 3: Rent Media object... 9: Quit Enter your selection : 2 Enter the title: Forever Young EBook [id=123, title=Forever Young, year=2018, chapters=20 available=false] MovieDVD [id=126, title=Forever Young, year=2020, size=140.0MB available=false] Welcome to Media Rental System 1: Load Media objects... 2: Find Media object... 3: Rent Media object... 9: Quit Enter your selection : 3 Enter the id: 999 The media object id=999 is not found Welcome to Media Rental System 1: Load Media objects... 2: Find Media object.... 3: Rent Media object... 9: Quit Enter your selection : 9 Thank you for using the program. Goodbye! Sample User interface - GUI: Menu Welcome to Media Rental System Menu Load Media objects... Find Media object... Rent Media object... Quit Welcome to Media Rental System Open 7 Look In: 100 Windows (C:) $GetCurrent Brother cygwin Intel MSOCache PerfLogs Program Files Program Files (x86) | ProgramData Python27 Python36 Python37 sr tmp-umuc Folder name: C:\mp-umuc Files of Type: All Files Users usr T E 01 Windows Windows.old Windows 10Upgrade Open 0 X 19 Cancel Welcome to Media Rental System Menu Load Media objects... Find Media object... Rent Media object... Quit Welcome to Media Rental System Input ? Menu Menu Enter the title blah Welcome to Media Rental System Message ОК Menu Welcome to Media Rental System Input ? OK Enter the title Forever Young OK Cancel There is no media with this title: blah I Cancel U X X U □ X X X X Message (İ Welcome to Media Rental System Welcome to Media Rental System Menu Load Media objects... Find Media object... Rent Media object... Quit Menu Welcome to Media Rental System Input ? EBook [id=123, title=Forever Young, year-2018, chapters-20 available=true] MovieDVD [id=126, title=Forever Young, year-2020,size=140.0MB available=false] Menu Enter the id 123 OK Welcome to Media Rental System Cancel OK Ок X JX Message i Media was successfully rented. Rental fee = $2.00 X X X X Welcome to Media Rental System Input Menu Message i Input ? Enter the title Forever Young Menu OK Welcome to Media Rental System Enter the title Forever Young OK Cancel Cancel EBook [id=123, title=Forever Young, year-2018, chapters=20 available=false] MovieDVD [id=126, title=Forever Young, year-2020, size=140.0MB available=false] OK Welcome to Media Rental System Message i Invalid title value Above closed the window by pressing the X, results in below: ок 0 X HAR RUNTunt X ZIEME X Create as well as implement a Java program that does the following: A) Media hierarchy: • Create Media, EBook, MovieDVD, and MusicCD • 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 B) Create as well as implement a Manager class that does the following: • 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) C) Create as well as implement MediaRental System 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. • 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 D) The Program should throw and catch Java built-in and user-defined exceptions as appropriate E) Your classes must be coded with correct encapsulation: private/protected attributes, get methods, and set methods and value validation F) There should be appropriate polymorphism: overloading, overriding methods, and dynamic binding G) Program should take advantage of the inheritance properties as appropriate Sample User interface - command driven: Welcome to Media Rental System 1: Load Media objects... 2: Find Media object... 3: Rent Media object... 9: Quit Enter your selection : 1 Enter path (directory) where to load from: blah File cannot be opened: Could not load, no such directory Welcome to Media Rental System 1: Load Media objects... 2: Find Media object... 3: Rent Media object... 9: Quit Enter your selection : 1 Enter path (directory) where to load from: C:/tmp-umuc Welcome to Media Rental System 1: Load Media objects... 2: Find Media object... 3: Rent Media object... 9: Quit Enter your selection : 2 Enter the title: blah There is no media with this title: blah Welcome to Media Rental System 1: Load Media objects... 2: Find Media object... 3: Rent Media object... 9: Quit Enter your selection : 2 Enter the title: Forever Young EBook [id=123, title=Forever Young, year=2018, chapters=20 available=true] MovieDVD [id=126, title=Forever Young, year=2020, size=140.0MB available=false] Welcome to Media Rental System 1: Load Media objects... 2: Find Media object... 3: Rent Media object... 9: Quit Enter your selection : 3 Enter the id: 123 Media was successfully rented. Rental fee = $2.00 Welcome to Media Rental System 1: Load Media objects... 2: Find Media object... 3: Rent Media object... 9: Quit Enter your selection : 2 Enter the title: Forever Young EBook [id=123, title=Forever Young, year=2018, chapters=20 available=false] MovieDVD [id=126, title-Forever Young, year-2020, size=140.0MB available=false] Welcome to Media Rental System 1: Load Media objects... 2: Find Media object... 3: Rent Media object... 9: Quit Enter your selection : 3 Enter the id: 999 The media object id=999 is not found Welcome to Media Rental System 1: Load Media objects... 2: Find Media object.... 3: Rent Media object... 9: Quit Enter your selection : 9 Thank you for using the program. Goodbye! Sample User interface - GUI: Menu Welcome to Media Rental System Menu Load Media objects... Find Media object... Rent Media object... Quit Welcome to Media Rental System Open 7 Look In: 100 Windows (C:) $GetCurrent Brother cygwin Intel MSOCache PerfLogs Program Files Program Files (x86) | ProgramData Python27 Python36 Python37 sr tmp-umuc Folder name: C:\tmp-umuc Files of Type: All Files Users usr T E 01 Windows Windows.old Windows 10Upgrade Open 0 X 19 Cancel Enter your selection : 2 Enter the title: Forever Young EBook [id=123, title=Forever Young, year=2018, chapters=20 available=true] MovieDVD [id=126, title=Forever Young, year=2020, size=140.0MB available=false] Welcome to Media Rental System 1: Load Media objects... 2: Find Media object... 3: Rent Media object... 9: Quit Enter your selection : 3 Enter the id: 123 Media was successfully rented. Rental fee = $2.00 Welcome to Media Rental System 1: Load Media objects... 2: Find Media object... 3: Rent Media object... 9: Quit Enter your selection : 2 Enter the title: Forever Young EBook [id=123, title=Forever Young, year=2018, chapters=20 available=false] MovieDVD [id=126, title=Forever Young, year=2020, size=140.0MB available=false] Welcome to Media Rental System 1: Load Media objects... 2: Find Media object.... 3: Rent Media object... 9: Quit Enter your selection : 3 Enter the id: 999 The media object id=999 is not found Welcome to Media Rental System 1: Load Media objects... 2: Find Media object.... 3: Rent Media object.... 9: Quit Enter your selection : 9 Thank you for using the program. Goodbye! Sample User interface - GUI: Menu Welcome to Media Rental System Menu Load Media objects... Find Media object... Rent Media object... Quit Welcome to Media Rental System Open 7 Look In: 100 Windows (C:) $GetCurrent Brother cygwin Intel MSOCache PerfLogs Program Files Program Files (x86) | ProgramData Python27 Python36 Python37 sr tmp-umuc Folder name: C:\tmp-umuc Files of Type: All Files Users usr T E 01 Windows Windows.old Windows 10Upgrade Open 0 X 19 Cancel Welcome to Media Rental System Menu Load Media objects... Find Media object... Rent Media object... Quit Welcome to Media Rental System Input ? Menu Menu Enter the title blah Welcome to Media Rental System Message ОК Menu Welcome to Media Rental System Input ? OK Enter the title Forever Young OK Cancel There is no media with this title: blah I Cancel U X X U □ X X X X Message (İ Welcome to Media Rental System Welcome to Media Rental System Menu Load Media objects... Find Media object... Rent Media object... Quit Menu Welcome to Media Rental System Input ? EBook [id=123, title=Forever Young, year=2018, chapters=20 available=true] MovieDVD [id=126, title=Forever Young, year-2020, size=140.0MB available=false] Menu Enter the id 123 OK Welcome to Media Rental System Cancel OK Ок X JX Message i Media was successfully rented. Rental fee = $2.00 X X X X Welcome to Media Rental System Input Menu Message i Input ? Enter the title Forever Young Menu OK Welcome to Media Rental System Enter the title Forever Young OK Cancel Cancel EBook [id=123, title=Forever Young, year=2018, chapters=20 available=false] MovieDVD [id=126, title=Forever Young, year-2020, size=140.0MB available=false] OK Welcome to Media Rental System Message i Invalid title value Above closed the window by pressing the X, results in below: ок 0 X HAR RUNTUN X ZIEME X Create as well as implement a Java program that does the following: A) Media hierarchy: • Create Media, EBook, MovieDVD, and MusicCD • 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 B) Create as well as implement a Manager class that does the following: • 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) C) Create as well as 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. • 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 D) The Program should throw and catch Java built-in and user-defined exceptions as appropriate E) Your classes must be coded with correct encapsulation: private/protected attributes, get methods, and set methods and value validation F) There should be appropriate polymorphism: overloading, overriding methods, and dynamic binding G) Program should take advantage of the inheritance properties as appropriate Sample User interface - command driven: Welcome to Media Rental System 1: Load Media objects... 2: Find Media object... 3: Rent Media object... 9: Quit Enter your selection : 1 Enter path (directory) where to load from: blah File cannot be opened: Could not load, no such directory Welcome to Media Rental System 1: Load Media objects... 2: Find Media object... 3: Rent Media object... 9: Quit Enter your selection : 1 Enter path (directory) where to load from: C:/tmp-umuc Welcome to Media Rental System 1: Load Media objects... 2: Find Media object... 3: Rent Media object... 9: Quit Enter your selection : 2 Enter the title: blah There is no media with this title: blah Welcome to Media Rental System 1: Load Media objects... 2: Find Media object... 3: Rent Media object... 9: Quit Enter your selection : 2 Enter the title: Forever Young EBook [id=123, title=Forever Young, year=2018, chapters=20 available=true] MovieDVD [id=126, title=Forever Young, year=2020, size=140.0MB available=false] Welcome to Media Rental System 1: Load Media objects... 2: Find Media object... 3: Rent Media object... 9: Quit Enter your selection : 3 Enter the id: 123 Media was successfully rented. Rental fee = $2.00 Welcome to Media Rental System 1: Load Media objects... 2: Find Media object... 3: Rent Media object... 9: Quit Enter your selection : 2 Enter the title: Forever Young EBook [id=123, title=Forever Young, year-2018, chapters=20 available=false] MovieDVD [id=126, title=Forever Young, year=2020, size=140.0MB available=false] Welcome to Media Rental System 1: Load Media objects... 2: Find Media object... 3: Rent Media object... 9: Quit Enter your selection : 3 Enter the id: 999 The media object id=999 is not found Welcome to Media Rental System 1: Load Media objects... 2: Find Media object.... 3: Rent Media object.... 9: Quit Enter your selection : 9 Thank you for using the program. Goodbye! Sample User interface - GUI: Menu Welcome to Media Rental System Menu Load Media objects... Find Media object... Rent Media object... Quit Welcome to Media Rental System Open 7 Look In: 100 Windows (C:) $GetCurrent Brother cygwin Intel MSOCache PerfLogs Program Files Program Files (x86) | ProgramData Python27 Python36 Python37 sr tmp-umuc Folder name: C:\tmp-umuc Files of Type: All Files Users usr T E 01 Windows Windows.old Windows 10Upgrade Open 0 X 19 Cancel Enter your selection : 2 Enter the title: Forever Young EBook [id=123, title-Forever Young, year=2018, chapters=20 available=true] MovieDVD [id=126, title=Forever Young, year=2020, size=140.0MB available=false] Welcome to Media Rental System 1: Load Media objects... 2: Find Media object... 3: Rent Media object... 9: Quit Enter your selection : 3 Enter the id: 123 Media was successfully rented. Rental fee = $2.00 Welcome to Media Rental System 1: Load Media objects... 2: Find Media object... 3: Rent Media object... 9: Quit Enter your selection : 2 Enter the title: Forever Young EBook [id=123, title=Forever Young, year=2018, chapters=20 available=false] MovieDVD [id=126, title=Forever Young, year=2020, size=140.0MB available=false] Welcome to Media Rental System 1: Load Media objects... 2: Find Media object... 3: Rent Media object... 9: Quit Enter your selection : 3 Enter the id: 999 The media object id=999 is not found Welcome to Media Rental System 1: Load Media objects... 2: Find Media object.... 3: Rent Media object... 9: Quit Enter your selection : 9 Thank you for using the program. Goodbye! Sample User interface - GUI: Menu Welcome to Media Rental System Menu Load Media objects... Find Media object... Rent Media object... Quit Welcome to Media Rental System Open 7 Look In: 100 Windows (C:) $GetCurrent Brother cygwin Intel MSOCache PerfLogs Program Files Program Files (x86) | ProgramData Python27 Python36 Python37 sr tmp-umuc Folder name: C:\mp-umuc Files of Type: All Files Users usr T E 01 Windows Windows.old Windows 10Upgrade Open 0 X 19 Cancel Welcome to Media Rental System Menu Load Media objects... Find Media object... Rent Media object... Quit Welcome to Media Rental System Input ? Menu Menu Enter the title blah Welcome to Media Rental System Message ОК Menu Welcome to Media Rental System Input ? OK Enter the title Forever Young OK Cancel There is no media with this title: blah I Cancel U X X U □ X X X X Message (İ Welcome to Media Rental System Welcome to Media Rental System Menu Load Media objects... Find Media object... Rent Media object... Quit Menu Welcome to Media Rental System Input ? EBook [id=123, title=Forever Young, year-2018, chapters-20 available=true] MovieDVD [id=126, title=Forever Young, year-2020,size=140.0MB available=false] Menu Enter the id 123 OK Welcome to Media Rental System Cancel OK Ок X JX Message i Media was successfully rented. Rental fee = $2.00 X X X X Welcome to Media Rental System Input Menu Message i Input ? Enter the title Forever Young Menu OK Welcome to Media Rental System Enter the title Forever Young OK Cancel Cancel EBook [id=123, title=Forever Young, year-2018, chapters=20 available=false] MovieDVD [id=126, title=Forever Young, year-2020, size=140.0MB available=false] OK Welcome to Media Rental System Message i Invalid title value Above closed the window by pressing the X, results in below: ок 0 X HAR RUNTunt X ZIEME X
Expert Answer:
Answer rating: 100% (QA)
SOLUTION I have solve the problem in Java code with comments and screenshot for easy understanding CODE import javaioFile import javaioFileNotFoundException import javautilArrayList import javautilLis... View the full answer
Related Book For
Modern Database Management
ISBN: 978-0133544619
12th edition
Authors: Jeff Hoffer, Ramesh Venkataraman, Heikki Topi
Posted Date:
Students also viewed these programming questions
-
Hermes Helicopters is located in Athens, Georgia. The company has a complex capital structure with common stock, convertible bonds, preferred stock and some stock options. The weighted average shares...
-
Produce a Java program that does the following: Media hierarchy: Create Media, EBook, MovieDVD, and MusicCD Add an attribute to Media class to store indication when media o... Produce a Java...
-
Produce a Java program that does the following: Media hierarchy: Classes for Media, EBook, MovieDVD, and MusicCD Add an attribute to Media class to store indication when media object is rented...
-
Jack Williams works in a very active department called purchasing. He works with store managers, marketing, and supply companies. The people in his department try to have the right product, in the...
-
If a typical firm reports $20 million of retained earnings on its balance sheet, can the firm definitely pay a $20 million cash dividend?
-
Avon Company uses a synoptic journal with the following headings: Sundry.. Dr./Cr. Accounts Receivable Dr./Cr. Accounts Payable Dr./Cr. Commission Sales Cr. Salary Expense Dr. Cash.. Dr./Cr. a. How...
-
Dorice lives and works in Indiana but purchased a car from a dealership in Illinois. The sales tax in Indiana is 7% and in Illi- nois, it is 6.25%. Did Dorice avoid having to pay the additional 0.75%...
-
GASB standards require that investments be reported at fair value. Explain the GASB reporting requirements related to fair value. How do these requirements differ from reporting requirements for...
-
A PROPERTY IS ANALYZED FOR A CONSTRUCTION LOAN. THE TOTAL COST IS $12 MILLION; THE 2 YEAR LOAN IS $8 MILLION AND ACCRUED INTEREST IS $450,000 AFTER 2 YEARS. the loan term extended 9 months during...
-
Julio and Milania are owners of Falcons Corporation, an S corporation. They each own 50 percent of Falcons Corporation. In year 1, Julio and Milani received distributions of $20,000 and $10,000,...
-
Go to the Johnson & Johnsons investor relations sales and earnings page at www.investor.jnj.com/sales-earnings.cfm. The company reports sales on a quarterly basis, so download all available sales...
-
Jane Lee is 82 years old and presently lives in her own house in Toronto, which she has owned and lived in for 40 years. Jane plans to move into a senior's home in February 2021. Jane is not sure...
-
Provide the investor company's balance for an "Investment in Investee" account immediately following the acquisition of the investee's net assets.
-
Best buy has begun selling gift cards. The cards are available in any dollar amount and allow the cardholder to purchase an item for up to two years from the time the card is purchased. if the card...
-
Can you discuss the security features and mechanisms implemented in advanced operating systems to protect against various threats, including privilege escalation, malware, and denial-of-service...
-
The property tax on a farm worth $880,000 was $8,250. What percentage of tax was paid?
-
Step 2 of 2: Determine if the relation is a function. If it is not, identify two ordered pairs as proof. Answer Selecting an option will display any text boxes needed to complete your answer....
-
On 1 July 2018, Parent Ltd acquired all the shares of Son Ltd, on a cum-div. basis, for $2,057,000. At this date, the equity of Son Ltd consisted of: $ 1,000,000 Share capital 500 000 shares...
-
Is a star schema a relational data model? Why or why not?
-
Define each of the following terms: a. Base table b. Data definition language c. Data manipulation language d. Dynamic view e. Materialized view f. Referential integrity constraint g. Relational DBMS...
-
Match the following terms and definitions: a. Lost previous data content b. Detailed historical data c. Data not altered or deleted d. Data warehouse of limited scope e. Dimension and fact tables f....
-
Mark and Sofia walk together down a long, straight road. They walk without stopping for 4 miles. At this point Sofia says their displacement during the trip must have been 4 miles; Mark says their...
-
Hicham El Guerrouj of Morocco holds the world record in the 1500 m running race. He ran the final 400 m in a time of 51.9 s. What was his average speed in mph over the last 400 m? A. 14.2 mph B. 15.5...
-
Logan observes a paramecium under a microscope. The eyepiece of the microscope has a horizontal scale marked in mm. The paramecium starts at the 65 mm mark and ends up at the 42 mm mark. What is the...
Study smarter with the SolutionInn App