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 17:30
Rachel completed typing an official document with a word processing program. she wants to make sure that her document has no typographical errors. she also wants all headings to have the same font. which features in a word processing program should she use? rachel should use the feature in a word processing program to find typographical errors. she should apply to have uniform headings.
Answers: 1
question
Computers and Technology, 23.06.2019 04:00
Laire writes a letter to her grandmother, in which she describes an amusement park she visited last week. she adds pictures of that place in her letter. which feature of a word processing program will claire to remove unwanted parts of the pictures?
Answers: 3
question
Computers and Technology, 23.06.2019 17:20
What is the best assassins creed game?
Answers: 2
question
Computers and Technology, 23.06.2019 21:50
Description: write function lastfirst() that takes one argument—a list of strings of the format "lastname, firstname" —and returns a list consisting of two lists: (a) a list of all the last names (b) a list of all the first names
Answers: 2
You know the right answer?
JAVA ProgrammingRequirements:To run a successful store you must:Store information about your Custome...
Questions
question
English, 22.01.2021 03:40
question
Mathematics, 22.01.2021 03:40
question
English, 22.01.2021 03:40
question
Spanish, 22.01.2021 03:40
Questions on the website: 13722363