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:
![Create as well as implement a Java program that does the following: A) Media hierarchy: Create Media, EBook,](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2023/08/64d21b37721b9_1691491127150.jpg)
![E) Your classes must be coded with correct encapsulation: private/protected attributes, get methods, and set](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2023/08/64d21b443f8fb_1691491139971.jpg)
![Sample User interface - command driven: Welcome to Media Rental System 1: Load Media objects... 2: Find Media](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2023/08/64d21b4c60230_1691491148105.jpg)
![Enter your selection : 2 Enter the title: Forever Young EBook [id=123, title=Forever Young, year=2018,](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2023/08/64d21b54b888e_1691491156458.jpg)
![Sample User interface - GUI: Menu Welcome to Media Rental System Menu Load Media objects... Find Media](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2023/08/64d21b5e57fda_1691491166056.jpg)
![Enter your selection : 2 Enter the title: Forever Young EBook [id=123, title=Forever Young, year-2018,](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2023/08/64d21b6a73779_1691491178165.jpg)
![Sample User interface - GUI: Menu Welcome to Media Rental System Menu Load Media objects... Find Media](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2023/08/64d21b71cf49b_1691491185549.jpg)
![Welcome to Media Rental System Menu Load Media objects... Find Media object... Rent Media object... Quit](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2023/08/64d21b7b858ec_1691491195258.jpg)
![Message ( Welcome to Media Rental System Welcome to Media Rental System Menu Load Media objects... Find Media](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2023/08/64d21b8966866_1691491208883.jpg)
![Welcome to Media Rental System Input Menu Message i Input ? Enter the title Forever Young Menu OK Welcome to](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2023/08/64d21b90f29f0_1691491216469.jpg)
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...
-
Suppose that zero rates are as in Problem 21.14. Use DerivaGem (with LIBOR discounting) to determine the value of an option to pay a fixed rate of 6% and receive LIBOR on a five-year swap starting in...
-
Penicillin is produced by fermentation and recovered from the resulting aqueous broth by extraction with butyl acetate. The penicillin distribution coefficient K (mass fraction of penicillin in the...
-
The World Bank sponsors the Doing Business database (www.doingbusiness.org), which provides measures of business regulations and their enforcement for countries worldwide. Firms can use these...
-
Tru Developers, Inc., sells plots of land for industrial development. Tru recognizes income for financial reporting purposes in the year it sells the plots. For some of the plots sold this year, Tru...
-
Fim Ahas Net Income of $26M and has 186,000 shares outstanding. Estimate its share price based on the following information about its peers: B P/E 5.2 -5.0 7.0 8.8
-
Tim and Tom are interesting characters. Their story has been told millions of times and has appeared many times in print. Some people think there is an important moral to their story. Tim and Tom are...
-
Jamie Lee and Ross need to evaluate their emergency fund of $21,000.Will their present emergency fund be sufficient to cover them should one of them lose their job? Show the equation for calculating...
-
Waverly Company Ltd. currently produces 8,000 units per year of SB 200 (snowboard), which is a component of the company's major products. SB 200 has the following unit cots Direct materials - $35.50...
-
Norton Ltd manufactures a single product, which is sold for $150 per unit. The standard variable costs per unit of the product are: Direct material 4 kilos at $8 per kilo Direct labour 5 hours at $10...
-
QUESTION 4 Murni Selasih Bhd is considering investing in a project that will generate higher returns Currently, the company has two projects with forecasted outcomes under consideration. The possible...
-
ABC plans to sell 60,000 units of product 751 in June, and each of these units requires five sq. ft. of raw material. Additional data is as follows: Product Raw No. 751 Material Actual June 1 11,200...
-
Case: Tom has felt anxious and constantly on edge over the past 3 years. He has few social contacts because of his nervous symptoms. He is married with 3 children and worries about if he is a good...
-
Calculate the geometric (average) return over the 5-year investment period. Year Price O 19 1 22 2 20 3 23 4 25 5 26 Round your answer to 4 decimal places. For example, if your answer is 3.205%, then...
-
Consider the discrete group G of order 8 that has the following Cayley diagram e If we have the sequence of operations: fcagec, which of the options represents the reduction of the sequence to a...
-
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....
-
Unincorporated joint operation managed by one of the operators LO4 During 2018, discussions took place between Broken Bay Ltd, a company concerned with the design of specialised tools and...
-
ACCOUNTING FOR AN ASSET USED BY A NUMBER OF COMPANIES Raby Ltd and Bay Ltd are companies that have newly discovered oil wells in a MiddleEastern country. There is some distance to the nearest port...
-
Contribution of plant LO3, 4 On 1 July 2019, Tully Ltd and Cooktown Ltd signed a contractual agreement to form a joint operation for the manufacture of kitchen products. The agreement provided that...
![Mobile App Logo](https://dsd5zvtm8ll6.cloudfront.net/includes/images/mobile/finalLogo.png)
Study smarter with the SolutionInn App