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 16:30
Technician a says that a dry sump system uses no oil storage sump under the engine. technician b says that a wet sump system uses no oil storage sump under the engine. who is correct?
Answers: 3
question
Computers and Technology, 22.06.2019 18:00
Write a method named addall that could be placed inside the hashintset class. this method accepts another hashintset as a parameter and adds all elements from that set into the current set, if they are not already present. for example, if a set s1 contains [1, 2, 3] and another set s2 contains [1, 7, 3, 9], the call of s1.addall(s2); would change s1 to store [1, 2, 3, 7, 9] in some order. you are allowed to call methods on your set and/or the other set. do not modify the set passed in. this method should run in o(n) time where n is the number of elements in the parameter set passed in.
Answers: 2
question
Computers and Technology, 23.06.2019 01:10
Problem 1 - hashing we would like to use initials to locate an individual. for instance, mel should locate the person mark e. lehr. note: this is all upper case. generate a hash function for the above using the numbers on your telephone. you know, each letter has a number associated with it, so examine your telephone keypad. generate 512 random 3 letter initials and take statistics on a linked list array size 512 to hold this information report how many have no elements, 1 element, 2 elements, does this agree with the hashing statistics distribution?
Answers: 1
question
Computers and Technology, 24.06.2019 15:30
Python. primary u.s. interstate highways are numbered 1-99. odd numbers (like the 5 or 95) go north/south, and evens (like the 10 or 90) go east/west. auxiliary highways are numbered 100-999, and service the primary highway indicated by the rightmost two digits. thus, the 405 services the 5, and the 290 services the 90. given a highway number, indicate whether it is a primary or auxiliary highway. if auxiliary, indicate what primary highway it serves. also indicate if the (primary) highway runs north/south or east/west.
Answers: 1
You know the right answer?
JAVA ProgrammingRequirements:To run a successful store you must:Store information about your Custome...
Questions