Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Task:
Design and implement a Java program for managing a library system. The program should have the
following features:
Book Class:
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.
Write a constructor for the Book class that initializes these variables.
Library Class:
Create a class named Library that contains an array to store Book objects for books.
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 checkedout books.
g Calculate and display fines for overdue books assume a fixed fine rate of $ dollars per
day
User Class:
Create a class named User with private instance variables for the user's name, ID and array of
checkedout books with a limit of
Write a constructor for the User class that initializes these variables.
Main Class:
Write a Main class that simulates a library management system.
Create instances of the Library class and populate it with sample Book objects.
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 checkedout books.
g Displaying fines for a user.
Additional Requirements:
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.
Implement a feature to allow users to reserve a book that is currently checked out.
Submission:
Take full page screenshots of the output and save it in a folder.
Create a zip file containing all the code needed to run the project.
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 THERE
WILL NOT BE ANY EXCEPTIONS FOR ANY STUDENT
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