Question: Assignment 1 Task: Design and implement a Java program for managing a library system. The program should have the following features: Book Class: 1 .

Assignment 1
Task:
Design and implement a Java program for managing a library system. The program should have the
following features:
Book Class:
1. Create a class named Book with private instance variables for the book's title, author, ISBN
number, genre, availability status, check in time and check out time.
2. Write a constructor for the Book class that initializes these variables.
Library Class:
1. Create a class named Library that contains an array to store Book objects for 100 books.
2. Include methods in the Library class to:
a. Add a new book to the library.
b. Display the list of books in the library.
c. Search for a book by title.
d. Check out a book (update its availability status).
e. Check in a book (update its availability status).
f. Display a list of checked-out books.
g. Calculate and display fines for overdue books (assume a fixed fine rate of $20 dollars per
day).
User Class:
1. Create a class named User with private instance variables for the user's name, ID, and array of
checked-out books with a limit of 5.
2. Write a constructor for the User class that initializes these variables.
Main Class:
1. Write a Main class that simulates a library management system.
2. Create instances of the Library class and populate it with sample Book objects.
3. Implement a user interface that allows users to interact with the library system by:
a. Adding a new book.
b. Displaying the list of books.
c. Searching for a book.
d. Checking out a book.
e. Checking in a book.
f. Displaying a list of checked-out books.
g. Displaying fines for a user.
Additional Requirements:
1. Implement proper error handling for cases such as adding duplicate books, checking out a book
that is already checked out, checking in a book that is not checked out, etc.
2. Implement a feature to allow users to reserve a book that is currently checked out.
Submission:
1. Take full page screenshots of the output and save it in a folder.
2. Create a zip file containing all the code needed to run the project.
3. Submit the screenshot folder and the code zip file.
If submission requirements are not followed to the letter, your work will receive a grade of 0. THERE
WILL NOT BE ANY EXCEPTIONS FOR ANY STUDENT

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!