subject
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.

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 14:20
Cengagenowv2 is a comprehensive online learning tool. using cengagenowv2, you may access all of the following except: 2. each time you log in, cengagenowv2 automatically performs a system check and informs you if your computer does not meet the cengagenowv2 system requirements. 3. which tab/page allows you to easily track your assignment scores, number of submissions, time spent, as well as the ability view assign
Answers: 3
question
Computers and Technology, 23.06.2019 13:30
Stops: using the information learned in this course, explain three things you will not do when driving. a. b. c. explain why you will not do these things when driving. starts: using the information learned in this course, explain three things you will do when driving. a. b. c. explain why you will do these particular things when driving. explain one thing you will stop doing as a passenger. explain one thing you will start doing as a passenger.
Answers: 3
question
Computers and Technology, 23.06.2019 23:30
The keyboard usually has six rows of keys. which of the following is not one of the key group categories? letter keys number keys control keys graphic keys
Answers: 1
question
Computers and Technology, 24.06.2019 17:30
What is the next step if your volume does not work on computer
Answers: 2
You know the right answer?
JAVA ProgrammingRequirements:To run a successful store you must:Store information about your Custome...
Questions
question
Mathematics, 05.02.2020 10:00
question
Mathematics, 05.02.2020 10:00
Questions on the website: 13722360