Question
This Book/CD Rental System is to be developed with Methods(NOT OBJECTS) using the Java programming language. The Book/CD rental system has several Books and CDs,
This Book/CD Rental System is to be developed with Methods(NOT OBJECTS) using the Java programming language. The Book/CD rental system has several Books and CDs, and many customers. Each customer is allowed to rent maximum of five Books and CDs at any time.
Upon returning Books and CDs, the library assistant shall compute the total fees. The rental fee for each book is $3 whereas a customer needs to pay $2 per CD as a rental fee. The borrowing periods of items (CD and Book) is one week. The customer must pay a fine of $1 per day for returning CD and Book later than due date.
Your program must provide the following functions to manage the books/CDs rental operations: a. Add customer(5 points)
Add new customer information (1. Name, 2. Address, 3. Phone number, 4. Enrolling date, 5. Rental record) into the customer list.
b.Delete Customer
Delete an existing customer from the customer list. A customer can only deleted from the list if a customer has returned all borrowed items or does not borrow any item.
c.Modify customer
Modify an existing customer information (1. Name, 2. Address, 3. Phone number, 4. Enrolling date) into the customer list.
d.Add Book or CD
Add new Book or CD information (1. Title, 2. Company, 3. Release date, 4. Borrowed date) in the Book and CD list
e.Rental Book/CD item
Keep the code of a customer who borrows Books or/and CDs under the respective record of Book item and the availability flag of the Book item must be set to be unavailable.
f.Return Book/CD item
When a customer shall return a borrowed item(s) to the book shop, the program shall compute rental fees of Book and CD items. The program shall display detailed report for a customer.
Customer Name: Eugine
Book Title Number of days Borrowed No of Days Overdue Rental Fee
HARRY POTTER 5 0 $3
The BLACK SWAN 7 2 $5
Total Rental Fee: $8
g.Reporting current Book/CD store information
The program shall display the list of Book and CD items rented out to the customers as well as for customer names with the list of Book and CD rented by each of them as following format.
Video Code Title Borrowed by
BOOK000001 HARRY POTER Eugine
BOOK000009 The BLACK SWAN Eugine
CD0110019 Adele Joel
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started