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, 21.06.2019 20:40
Peripherals are part of the main computer. true false
Answers: 3
question
Computers and Technology, 22.06.2019 23:00
Which type of tab stop is most for weights and measurements?
Answers: 1
question
Computers and Technology, 23.06.2019 03:30
Hashtags serve to identify the topic of a given tweet true false
Answers: 2
question
Computers and Technology, 23.06.2019 15:00
Barbara is interested in pursuing a career in the science and math pathway. which qualifications will her reach that goal? a.an advanced knowledge of physics and math b.an advanced knowledge of engineering and math c. an advanced knowledge of physics and robotics an d. advanced knowledge of machinery and math
Answers: 1
You know the right answer?
JAVA ProgrammingRequirements:To run a successful store you must:Store information about your Custome...
Questions
question
Business, 25.09.2020 05:01
Questions on the website: 13722363