Index A: MediaRentallnt interface Includes: Method Detail addCustomer void addCustomer(String name,String address,String plan) Adds the specified...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Index A: MediaRentallnt interface Includes: Method Detail addCustomer void addCustomer(String name,String address,String plan) Adds the specified customer to the database. The address is a physical address (not e-mail). The plan options available are: LIMITED and UNLIMITED. LIMITED defines a default maximum of two media that can be rented. Parameters: name - ,address -, plan - addMovie void addMovie(String title, int copiesAvailable,String rating) Adds the specified movie to the database. The possible values for rating are "DR", "HR", "AC". Parameters:title -,copiesAvailable - „rating - addGame void addGame(String title, int copiesAvailable,double weight) Adds the specified game to the database. Parameters:title - ,copiesAvailable - weight - addAlbum void addAlbum(String title,int copiesAvailable,String artist,String songs) Adds the specified album to the database. The songs String includes a list of the title of songs in the album (song titles are separated by commas). Parameters: title - ,copiesAvailable -„artist -,songs - setlimitedPlanLimit void setlimitedPlanLimit(int value) This set the number of media associated with the LIMITED plan. Parameters: value - getAllCustomersinfo String getAlICustomerslnfo( Returns information about the customers in the database. The information presented sorted by customer name. Returns: getAlIMedialnfo String getAlIMedialnfo() Returns information about all the media (movies, albums, and games) that are part of the database. The information is presented sorted by media title. Returns: addToCart boolean addToCart(String customerName,String mediaTitle) Adds the specified media title to the cart associated with a customer. Parameters:customerName - ,mediaTitle - Returns: false if the mediaTitle is already part of the cart (it will not be added) removeFromCart boolean removeFromCart(String customerName, String mediaTitle) Removes the specified media title from the customer's cart. Parameters:customerName - ,mediaTitle - Returns: false if removal failed for any reason (e.g., customerName not found) processRequests String processRequests() Processes the requests cart of each customer. The customers will be processed in alphabetical order. For each customer, the requests cart will be checked and media will be added to the rented cart, if the plan associated with the customer allows it, and if there is a copy of the media available. For UNLIMITED plans the media will be added to the rented cart always, as long as there are copies associated with the media available. For LIMITED plans, the number of entries moved from the requests cart to the rented cart will depend on the number of currently rented media, and whether copies associated with the media are available. For each media that is rented, the following message will be generated: "Sending [mediaTitle] to (customerName]" Returns: returnMedia boolean returnMedia(String customerName,String mediaTitle) This is howa customer returns a rented media. This method will remove the item from the rented cart and adjust any other values that are necessary (e.g., copiesAvailable) Parameters:customerName - ,mediaTitle - Returns: searchMedia ArrayList searchMedia(String title,String rating, String artist, String songs) Returns a SORTED ArrayList with media titles that satisfy the provided parameter values. If null is specified for a parameter, then that parameter should be ignore in the search. Providing null for all parameters will return all media titles. Parameters: title - „rating - ,artist -, songs - Returns: Index B: Public Driver: Method Detail public void testAddingCustomers() public void testAddingMedia() public void testingAddingToCart() public void testingRemovingFromCart() public void testProcessingRequestsOne() public void testProcessingRequestsTwol) public void testReturnMedia() public void testSearchMedia() Index C: Academic Integrity Please make sure you read the academic integrity section of the syllabus so you understand what is permissible in our programming projects. We want to remind you that we check your project against other students' projects and any case of academic dishonesty will be referred to fail in the course and the student is referred to a system committee. NOTE: THERE IS PASS OF ( There is a face-to-face discussion) Index A: MediaRentallnt interface Includes: Method Detail addCustomer void addCustomer(String name,String address,String plan) Adds the specified customer to the database. The address is a physical address (not e-mail). The plan options available are: LIMITED and UNLIMITED. LIMITED defines a default maximum of two media that can be rented. Parameters: name - ,address -, plan - addMovie void addMovie(String title, int copiesAvailable,String rating) Adds the specified movie to the database. The possible values for rating are "DR", "HR", "AC". Parameters:title -,copiesAvailable - „rating - addGame void addGame(String title, int copiesAvailable,double weight) Adds the specified game to the database. Parameters:title - ,copiesAvailable - weight - addAlbum void addAlbum(String title,int copiesAvailable,String artist,String songs) Adds the specified album to the database. The songs String includes a list of the title of songs in the album (song titles are separated by commas). Parameters: title - ,copiesAvailable -„artist -,songs - setlimitedPlanLimit void setlimitedPlanLimit(int value) This set the number of media associated with the LIMITED plan. Parameters: value - getAllCustomersinfo String getAlICustomerslnfo( Returns information about the customers in the database. The information presented sorted by customer name. Returns: getAlIMedialnfo String getAlIMedialnfo() Returns information about all the media (movies, albums, and games) that are part of the database. The information is presented sorted by media title. Returns: addToCart boolean addToCart(String customerName,String mediaTitle) Adds the specified media title to the cart associated with a customer. Parameters:customerName - ,mediaTitle - Returns: false if the mediaTitle is already part of the cart (it will not be added) removeFromCart boolean removeFromCart(String customerName, String mediaTitle) Removes the specified media title from the customer's cart. Parameters:customerName - ,mediaTitle - Returns: false if removal failed for any reason (e.g., customerName not found) processRequests String processRequests() Processes the requests cart of each customer. The customers will be processed in alphabetical order. For each customer, the requests cart will be checked and media will be added to the rented cart, if the plan associated with the customer allows it, and if there is a copy of the media available. For UNLIMITED plans the media will be added to the rented cart always, as long as there are copies associated with the media available. For LIMITED plans, the number of entries moved from the requests cart to the rented cart will depend on the number of currently rented media, and whether copies associated with the media are available. For each media that is rented, the following message will be generated: "Sending [mediaTitle] to (customerName]" Returns: returnMedia boolean returnMedia(String customerName,String mediaTitle) This is howa customer returns a rented media. This method will remove the item from the rented cart and adjust any other values that are necessary (e.g., copiesAvailable) Parameters:customerName - ,mediaTitle - Returns: searchMedia ArrayList searchMedia(String title,String rating, String artist, String songs) Returns a SORTED ArrayList with media titles that satisfy the provided parameter values. If null is specified for a parameter, then that parameter should be ignore in the search. Providing null for all parameters will return all media titles. Parameters: title - „rating - ,artist -, songs - Returns: Index B: Public Driver: Method Detail public void testAddingCustomers() public void testAddingMedia() public void testingAddingToCart() public void testingRemovingFromCart() public void testProcessingRequestsOne() public void testProcessingRequestsTwol) public void testReturnMedia() public void testSearchMedia() Index C: Academic Integrity Please make sure you read the academic integrity section of the syllabus so you understand what is permissible in our programming projects. We want to remind you that we check your project against other students' projects and any case of academic dishonesty will be referred to fail in the course and the student is referred to a system committee. NOTE: THERE IS PASS OF ( There is a face-to-face discussion)
Expert Answer:
Answer rating: 100% (QA)
ASAP is an acronym for As Soon as Possible It is often used in business correspondence to request th... View the full answer
Posted Date:
Students also viewed these computer engineering questions
-
Name three ways that null values in a database can be interpreted. Why is this problematic?
-
A video movie rental store is using a relational database to store information on movie rentals to answer customer questions. Each entry in the database contains the following items: Movie Number...
-
The lengths (in seconds) of songs on an album are listed. Determine the level of measurement of the data set. Explain your reasoning. 228 233 268 265 252 335 103 338 252 371 586 290 532 282
-
A star of a reality TV show: Real Housewives of Tacoma bought a house for her family 3 years ago. The houses asking price was $895,000. She put 20% down payment and a local bank lent her the...
-
Two USA TODAY/Gallup polls of 979 U.S. adults each, one in November 2001 and the other in March 2009, asked Did the United States make a mistake in sending military forces to Afghanistan? The numbers...
-
Mainline Produce Corporation acquired all the outstanding common stock of Iceberg Lettuce Corporation for $30,000,000 in cash. The book values and market values of Icebergs assets and liabilities...
-
(a) Find the solution to the following PDE: \[\begin{aligned}& \frac{\partial^{2} u}{\partial t^{2}}=\frac{\partial^{2} u}{\partial x^{2}} \\& u(0, t)=u(L, t)=0 \\& u(x, 0)=0 \\& \frac{\partial...
-
Identify the factors that may have contributed to the alleged flaws in the audit procedures that PwC applied in testing the year-end market values of the Lipper hedge funds investments. Discuss...
-
The pressure of both tanks were 117.7 kpa.( first picture) We added 500kg mass to the left tank and the pressure went up to 118.7. (second picture) Can you explain why the pressure changed after...
-
Using the results of Problem 1.7, show that de r / d = e and de /d = e r . Data From Problem 1.7 Show that the unit vectors e r and e in a cylindrical coordinate system are related to the unit...
-
Merck & Company reported the following from its 2016 financial statements. $ millions 2013 2014 2015 2016 Accounts receivable, net $7,184 $6,626 $6,484 $7,018 Allowance for doubtful accounts 146...
-
Implement the animal guessing game described in Section 17.2.1. Start with the tree in Figure 4, but present the leaves as Is it a(n) X? If it wasnt, ask the user what the animal was, and ask for a...
-
Enhance Exercise Graphics P22.8 so that it shows two frames, one for a merge sorter and one for a selection sorter. They should both sort arrays with the same values. Data from exercise graphics...
-
When a socket is created, which of the following Internet addresses is used? a. The address of the computer to which you want to connect b. The address of your computer c. The address of your ISP
-
Write a program to determine how many actors there are in the data set in Worked Example 19.2. Note that many actors are in multiple movies. The challenge in this assignment is that each movie has a...
-
Modify the generic Pair class so that both values have the same type.
-
Question 13 (1 point) Martin buys a 10 year corporate bond for $10,000 that was issued by a medical supply firm. In turn, that firm devotes the funds from its bond sales to expanding its capacity to...
-
Calculate the Lagrange polynomial P 2 (x) for the values (1.00) = 1.0000, (1.02) = 0.9888, (1.04) = 0.9784 of the gamma function [(24) in App. A3.1] and from it approximations of (1.01) and (1.03).
-
If you stood atop a super-tall ladder three times as far from Earths center as at Earths surface, how would your weight compare with it present value?
-
How was Pioneer 10 able to escape the solar system with an initial speed less than escape speed?
-
With no gravity, a horizontally moving projectile follows a straight-line path. With gravity, how far below the straightline path does it fall compared with the distance of free fall?
Study smarter with the SolutionInn App