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...
-
Skulas, Inc., manufactures and sells snowboards. Skulas manufactures a single model, the Pipex. In the summer of 2014, Skulas management accountant gathered the following data to prepare budgets for...
-
The cash data of Big City Automotive for July 2014 follow: Big City Automotive received the following bank statement on July 31, 2014: Additional data for the bank reconciliation include the...
-
From table 5.1, what do you see as the main differences between individual lending contracts in microfinance relative to their group lending counterparts? What kinds of additional information would...
-
Nina owns a used car lot. She signs and sends a fax to Seth, a used car wholesaler who has a huge lot of cars in the same city. The fax says, Confirming our agreementI pick any 15 cars for year...
-
Find the inverse matrix, if it exists. (If the inverse does not exist, enter DNE into any cell.) 16-14
-
Harriet's Hats is a retailer who buys hats from a manufacturer and then sells them in its stores. The following information includes the company's December 31, 20Y8 Balance Sheet and the details of...
-
The selling price of a new company's units is $20,000 each. The buyers are provided with a 2-year warranty that is expected to cost the company $500 per unit in the year of the sale and $1,500 per...
-
Question 1 Liquid Hair's demand for bottles of shampoo was 10,500 units. The CEO asked the accountant about the expected cost for the sales-order activity. A new software had been installed, and the...
-
Financial management (please give a correct answer without using chat gpt) Using the information contained in the table below, answer the questions in the issue. Probability associated with each...
-
Describe the car you ended up choosing and why you chose that car (i.e. how does that car meet your needs)? Make sure to include all details about the car including the total price of the car and if...
-
11. At every point (x, y) on a certain curve, we have dy = 5. dx When x2, y attains a minimum value of 10. Find the equation of the curve. Page 2 of 6
-
The molecule shown below is Efavirenz, which is a reverse transcriptase inhibitor drug used for the treatment of HIV infection. In this question we will explore some of the chemistry that occurs...
-
On August 20, Mr. and Mrs. Cleaver decided to buy a property from Mr. and Mrs. Ward for $106,500. On August 30, Mr. and Mrs. Cleaver obtained a loan commitment from OKAY National Bank for an $84,300...
-
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).
-
Suppose you are the controller of Ryerson University. The university president is preparing for her annual fundraising campaign for 2008-09. To set an appropriate target, she has asked you to prepare...
-
Grace Hospital provides a wide range of health services in its community. The board of directors has authorized the following capital expenditures: The expenditures are planned for October 1, 2008,...
-
Study the appendix beginning on page 551. The Speedy-Mart Store has the following budgeted sales, which are uniform throughout the month: Cost of goods sold averages 70 percent of sales and is...
Study smarter with the SolutionInn App