Question
The main goal of this project is to develop a simple library system. The program should be able to add books and students, assign books
The main goal of this project is to develop a simple library system. The program should be able to add books and students, assign books to students, and print all necessary information
Requirements Structural requirements Fields of Book.java class:
- title: String
- author: String
- isbn: String
- year: int
- quantity: int
Fields of Student.java class:
- id: int - name: String
- surname: String
- group: String
- borrowedBooks: ArrayList
Fields of Library.java class:
- books: ArrayList
- students: ArrayList
note: - private; + public; #protected; or default if not shown any
Functional Requirements
− User should be able to add a new book
− User should be able to add a new student
− User should be able to assign a certain book to a certain student
− User should be able to remove a certain book from a certain student
− Program should print information about all books and students in Library
− Program should print all books that's currently assigned to a certain student
Step by Step Solution
3.33 Rating (174 Votes )
There are 3 Steps involved in it
Step: 1
Heres the implementation of the specified requirements in Java Bookjava java import javautilArrayList public class Book private String title private String author private String isbn private int year ...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