Question: Main Class; Book A = new Book(Variables); // this option is if new books need to be added to the database Customer B = new
Main Class;
Book A = new Book(Variables); // this option is if new books need to be added to the database
Customer B = new Customer(Variables)// this option is to add new users to the library
Main menu option (Enter numb 1-7);
// Method outside of main class
Generic print method for account id
When ID is entered account info pops up
==================================
Book Class(){
Initialize variables;
// constructors
Book (args){
This.variable = variable;
}
Book(Default){
}
// get and set method for each variable
Get method(){ return variable;}
Set method(variable) { this.variable = variable;}
// Methods
Private void getID(){
If member, return book method
Else create account;
}
Private void bookInfo(variables){
Call book info and print
}
Private void returnBook(args){
If book title match return book
Book on hand ++
rentedBook --
Else error message;
}
Private void deleteBook(args){
If book title match inventory
Book on hand --
Else cancel;
}
}
==============================================
Customer Class(args) inherits Book{
Initialize variables;
// Constructors
Class(variables){
This.variable = variable;
}
Class(Default){
}
// get/set methods
Public void get(){
Return variable;
}
Public void set(variable){
This.variable = variable;
}
// Methods
@overide
Private void bookInfo(variables){
Call book info and print
}
Private void int newID(variables){
Name
Address
If Name exist, don't create
Else assign name new unique ID
Return variable;
}
Private void int rentedBooks(variables){
Get book info
Print out book info
rentedBooks ++;
}
Private void int Limit(variables){
For loop if rentedBooks
Check out
Else return a book before you can check out;
}

This is the psuedo code for the program, i just dont know how to pass the methods to the main method
Java
Add new books All books should be loaded into the library database system prior to being used. In order to register a new book, the following data should be entered ISBN, title, author, publisher, Quantity Borrow Books: When a customer borrows the book, the system needs to check the given customer is already registered through searching for the user list. If he's he is ve lid, borrowing the book is allowed Librarian enters the book title or ISBN and quantity to be borrowed, system checks if the given book is in the library and also the quantity user asked is available. The quantity must be an unsigned integer There is a borrow limit that each customer cannot borrow more than 5 books at one time. Display Books: Display all book information to the screen. Remove Books Specific books will be entered and then deleted from the book database Retum Books: When a customer returns the book, the system needs to check the customer's borrow status. If he's he is valid, the system puts the book back into the library database. Main menu options The main routine should be repeated until the user excits 1. 2 3. 4 Register a new user Borrow the book Return the book Add a new book to the library Remove the book from the library Display book list Exit the menu & 7. Add new books All books should be loaded into the library database system prior to being used. In order to register a new book, the following data should be entered ISBN, title, author, publisher, Quantity Borrow Books: When a customer borrows the book, the system needs to check the given customer is already registered through searching for the user list. If he's he is ve lid, borrowing the book is allowed Librarian enters the book title or ISBN and quantity to be borrowed, system checks if the given book is in the library and also the quantity user asked is available. The quantity must be an unsigned integer There is a borrow limit that each customer cannot borrow more than 5 books at one time. Display Books: Display all book information to the screen. Remove Books Specific books will be entered and then deleted from the book database Retum Books: When a customer returns the book, the system needs to check the customer's borrow status. If he's he is valid, the system puts the book back into the library database. Main menu options The main routine should be repeated until the user excits 1. 2 3. 4 Register a new user Borrow the book Return the book Add a new book to the library Remove the book from the library Display book list Exit the menu & 7
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
