Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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 ... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Essentials of MIS

Authors: Kenneth C. Laudon, Jane P. Laudon

12th edition

134238249, 978-0134238241

More Books

Students also viewed these Databases questions

Question

Find the radius of convergence of? 1.2.3 1.3.5 (2n-1) r2n+1 -1

Answered: 1 week ago