Specifications MediaRentalint interfoce includes: What You Must Implement Method Detail adstoer void adCustoner String nae, String address, String plan) Mds the speeified eustomer to the database. The address is a physical address (not eil). The plan options available are: LIMITEDand UNLINITED LIMITED defines a default mi of two edia that can be rented e You must define a class named MediaRental that implements the MediaRentallnt interface functionality index A). You must define classes that support the functionality specified by the interface. The following specifications are associated with the project: Parters: address plan - addovie void adovie (String title, int copiestvai lable, String rating) Mds "DR. R. "AC". the specified movie to the database. The possible values for rating are" - Paretersitle-copiestrai lablerating 1. Define a class named MediaRental. Feel free to add any instance variables you understand are needed or any private methods. Do not add any public methods (beyond the ones specified in the MediaRentalint interface). 2. The media rental system keeps track of customers and media (movies ,music albums and games). A customer has a name, address as string, a plan and two lists. One list represent the media the customer is interested in receiving and the second one represents the media already received (rented) by the customer. There are two plans a customer can have: UNLIMITED and LIMITED. UNLIMITED allows a customer to receive as many media as they want; LIMITED restricts the media to a default value of 2 (this value can be change via a media rental class method). addCane void ad (String title, int copiestvailable, double weight) ds the specified ge to the database. Pareters:title - .copiestrai lable weight- adAlb void adAlbuString title, int copiestvailable, String artist, String songs) Adds the specified album to the database, The songs String includes a list of the title of songs in the albun (song titles are separated by coma). Pareters: title - ,copiestvailable artist songs A movie has a title, a number of copies available and a rating (e.g., "HR"). An album has a title, number of copies available, an artist and the songs that are part of the album. A game has title,number of copies,and the weight (in grams) is also stored. 3. You must define and use at least four classes (not including MediaRental) as part of your design. At least two of etlinitelanlinit void setliattePlani.talt(int value) This set the maber of sedia associated vith the LIMITED plan. Pareters: value those classes must be in a superclass/subclass relationship (Inheritance Requirement). The other two can be defined as you wish. Feel free to define as many classes as you want. These classes must support the functionality of the system otherwise you will not receive any credit. 4. One of your classes must define an equals method that has as parameter an Object parameter. 5. The database for your system needs to be represented using two Arraylist objects. One ArrayList will represent the customers present in the database; the second will represent the media (movies, albums, and games). 6. Regarding the searchMedia method: the songs parameter represents a substring (fragment) or the full list of songs associated with the album. If the full list is provided you can assume commas will be part of the string. Hint: you may want to consider using the indexOf method of the String class. 7. Your program should store the results in a file between executions of the program, so that when the program is run again it will start up with the same inventory contents as when it last terminated. tAllCustoerelnfo String llOtoereinfoo Returns infermat ion about the eustomers in the database. The informtion is presented sorted by customer name. Raturna: Aedialafe String getaledialnfo Returns informetion about all the media ovies, albu, and pes) that are part of the database. The information is presented sorted by edia title. Raturna: addtoCart boolean adToCart(String eustoerNe, String edialitle) Mds the speeified edia title to the ecart associated with a customer. PareterscustomerNane-dialitle - Returna: false if the medialitle is already pert of the cart (it will not be added) 8. Feel free to use Collections.sort to sort your data. 9. Write test driver. 10. Handle expectations where it's needed. 11. Not all the details associated with the project can be fully specified in this description. The sooner you start working on the project the sooner you will be able to address any doubts you may have. reoveProCart boolean reovefroCart (String customerNane, String ediatitle) Renoves the specified sedia title from the customer's cart. ParetersteustoerNae dialitle- Returna: false if reoval failed for any reason e. customerNane not found) procesalaqesta String procenslaqusta Processes the requests cart ef each eustomer. The eustomers will be processed in alphabetical order. For each custoner, the requests cart vill be checked and media vill be added to the rented cart, if the plan associated vith the customer allows it, and if there is a copy of the media available. For INLIMITED plans the media vill be added to the rented cart always, as long as there are copies associated vith the sedia available. For LIMITED plans, the muber ef entries oved from the requests cart to the rented cart vill depend on the ber of eurrent ly rented edia and whether copies Note: To understand the requirement, you might lock at the indices (A, B, and C) associated vith the media are available.
Specifications MediaRentalint interfoce includes: What You Must Implement Method Detail adstoer void adCustoner String nae, String address, String plan) Mds the speeified eustomer to the database. The address is a physical address (not eil). The plan options available are: LIMITEDand UNLINITED LIMITED defines a default mi of two edia that can be rented e You must define a class named MediaRental that implements the MediaRentallnt interface functionality index A). You must define classes that support the functionality specified by the interface. The following specifications are associated with the project: Parters: address plan - addovie void adovie (String title, int copiestvai lable, String rating) Mds "DR. R. "AC". the specified movie to the database. The possible values for rating are" - Paretersitle-copiestrai lablerating 1. Define a class named MediaRental. Feel free to add any instance variables you understand are needed or any private methods. Do not add any public methods (beyond the ones specified in the MediaRentalint interface). 2. The media rental system keeps track of customers and media (movies ,music albums and games). A customer has a name, address as string, a plan and two lists. One list represent the media the customer is interested in receiving and the second one represents the media already received (rented) by the customer. There are two plans a customer can have: UNLIMITED and LIMITED. UNLIMITED allows a customer to receive as many media as they want; LIMITED restricts the media to a default value of 2 (this value can be change via a media rental class method). addCane void ad (String title, int copiestvailable, double weight) ds the specified ge to the database. Pareters:title - .copiestrai lable weight- adAlb void adAlbuString title, int copiestvailable, String artist, String songs) Adds the specified album to the database, The songs String includes a list of the title of songs in the albun (song titles are separated by coma). Pareters: title - ,copiestvailable artist songs A movie has a title, a number of copies available and a rating (e.g., "HR"). An album has a title, number of copies available, an artist and the songs that are part of the album. A game has title,number of copies,and the weight (in grams) is also stored. 3. You must define and use at least four classes (not including MediaRental) as part of your design. At least two of etlinitelanlinit void setliattePlani.talt(int value) This set the maber of sedia associated vith the LIMITED plan. Pareters: value those classes must be in a superclass/subclass relationship (Inheritance Requirement). The other two can be defined as you wish. Feel free to define as many classes as you want. These classes must support the functionality of the system otherwise you will not receive any credit. 4. One of your classes must define an equals method that has as parameter an Object parameter. 5. The database for your system needs to be represented using two Arraylist objects. One ArrayList will represent the customers present in the database; the second will represent the media (movies, albums, and games). 6. Regarding the searchMedia method: the songs parameter represents a substring (fragment) or the full list of songs associated with the album. If the full list is provided you can assume commas will be part of the string. Hint: you may want to consider using the indexOf method of the String class. 7. Your program should store the results in a file between executions of the program, so that when the program is run again it will start up with the same inventory contents as when it last terminated. tAllCustoerelnfo String llOtoereinfoo Returns infermat ion about the eustomers in the database. The informtion is presented sorted by customer name. Raturna: Aedialafe String getaledialnfo Returns informetion about all the media ovies, albu, and pes) that are part of the database. The information is presented sorted by edia title. Raturna: addtoCart boolean adToCart(String eustoerNe, String edialitle) Mds the speeified edia title to the ecart associated with a customer. PareterscustomerNane-dialitle - Returna: false if the medialitle is already pert of the cart (it will not be added) 8. Feel free to use Collections.sort to sort your data. 9. Write test driver. 10. Handle expectations where it's needed. 11. Not all the details associated with the project can be fully specified in this description. The sooner you start working on the project the sooner you will be able to address any doubts you may have. reoveProCart boolean reovefroCart (String customerNane, String ediatitle) Renoves the specified sedia title from the customer's cart. ParetersteustoerNae dialitle- Returna: false if reoval failed for any reason e. customerNane not found) procesalaqesta String procenslaqusta Processes the requests cart ef each eustomer. The eustomers will be processed in alphabetical order. For each custoner, the requests cart vill be checked and media vill be added to the rented cart, if the plan associated vith the customer allows it, and if there is a copy of the media available. For INLIMITED plans the media vill be added to the rented cart always, as long as there are copies associated vith the sedia available. For LIMITED plans, the muber ef entries oved from the requests cart to the rented cart vill depend on the ber of eurrent ly rented edia and whether copies Note: To understand the requirement, you might lock at the indices (A, B, and C) associated vith the media are available.
Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
Related questions
Question
Write this project in javascript
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 3 steps
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY