Computers and Technology
Computers and Technology, 15.04.2020 18:44, lucia87

JAVA ProgrammingRequirements:To run a successful store you must:Store information about your Customers. Store information about your available Books. Maintain a mapping of which Books each Customer currently is renting. All of your classes should be properly encapsulated, follow all proper coding conventions discussed to date, and be logically constructed following good Object Oriented design. Your submitted code should compile and run without errors. Please be sure to export your project to ZIP using NetBeans. Step 1: Your Customer class. a.Create a Customer class that stores a Customer ID, First Name, Last Name, and Account Balance. b.Override toString(), equals(), and hashCode() as discussed in class. Customer ID is sufficient to uniquely identify a Customer. c.Create all constructors, getters, setters as necessaryStep 2: Your Book classa. Create a Book class that stores a Book Title and Copies Remaining. b.Override toString(), equals(), and hashCode() as discussed in class. Book Title is sufficient to uniquely identify a Book. c.Create all constructors, getters, setters as necessaryStep 3: Your Book Store classa. This class is central to your applicationb. Create a BookStore class that contains your store name, as well as:c. A Set containing your books - A Set containing your customers - A Map specifying which customers have rented which books- Create the following methods in your BookStore class:addBook() : Adds a book to your available titles. It should take the book title and number of available copies as parameters. updateBook() : Updates a book in your system. It should take the book title and number of available copies as parameters. addCustomer() : Adds a customer to your system. It should take the customer’s Customer ID, First Name, Last Name, and Account Balance as parameters. updateCustomer() : Updates a customer in your system. It should take the customer’s Customer ID, First Name, Last Name, and Account Balance as parameters. addRental(): Records the fact that a customer has rented a book. It should take the Customer ID and the book title they would like to rent as parameters. It should verify that the book is available (in the system, and having number of copies > 0), and that the customer is in the system. If these verifications pass, it should record the fact that the book has been rented in the Map, decrement the number of copies of that book are available, and return true. If these verifications fail, it should provide a useful message and return false. showAll(): Displays all Books, Customers, and Rentals in a nicely formatted manner using Iterators as described in class. Step 4: Your main() methodIn your main method:Create an instance of your BookStore class. Use the addBook() method to add 3 books to the systemUse the addCustomer() method to add 2 customers to the systemUse the addRental() method to make a single customer rent at least two different booksUse the showAll() method to show all information about the Book Store and its Customers, Books, and Rentals.

answer
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 15:00, taylorsamodell3217
Who is the first president to use social media as part of his campaign strategy
Answers: 1
image
Computers and Technology, 23.06.2019 01:30, giannav57
How do you set up a slide show to play continuously, advancing through all the slides without requiring your interaction? a. click set up slide show, and then select the loop continuously until ‘esc' and show without narration options. b. click set up slide show, and then select the loop continuously until ‘esc' and use timings, if present options. c. click set up slide show, and then select the show presenter view and use timings, if present options. d. click set up slide show, and then select the show without animation and browsed at a kiosk (full screen) options.
Answers: 3
image
Computers and Technology, 23.06.2019 12:30, umimgoingtofail
What is the difference between the internet and the world wide web?
Answers: 1
image
Computers and Technology, 24.06.2019 06:30, chloeholt123
For which utilities, if any, does the landlord pay?
Answers: 2
Do you know the correct answer?
JAVA ProgrammingRequirements:To run a successful store you must:Store information about your Custome...

Questions in other subjects: