Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

** JAVA ** Hello, I need to create a simple library management program using GUI. IntelliJ is being used to code. The GUI has already

** JAVA **

Hello, I need to create a "simple" library management program using GUI. IntelliJ is being used to code. The GUI has already been designed, I need help with coding the following functions:

1) Add a new book

2) Issue/Borrow book

3) Return book

When a user selects add a book button on the GUI, the following should be asked: (a maximum of 10 books can be added at a time)

- title of the book you want to add

- author's name

- ISBN of the book you want to add (ISBN, in this case, will be a 10 digit number. No input less or more than 10 will be accepted)

- Once user inputs all information correctly, message should pop up saying "You have successfully added *book name* by *author name!* otherwise message should say "Error to add a book! Please check if all information is correct"

When a user selects issue/borrow button on the GUI, the user is required to do the following:

- title of the book you want to borrow

- name of the author

- ISBN for the book you want to borrow (ISBN, in this case, will be a 10 digit number. No input less or more than 10 will be accepted)

- student's first and last names as well as their student ID (Student ID, in this case, will be a 7 digit number. No input less or more than 7 will be accepted)

- upon inputting the following details, a message should pop up saying "You have successfully borrowed *book title* by *author name.*" otherwise, the message should say "Error to add a book! Please check if all information is correct"

When a user selects return button on the GUI, the user is required to do the following:

- title of the book you want to return

- name of the author

- ISBN for the book you want to return (ISBN, in this case, will be a 10 digit number. No input less or more than 10 will be accepted)

- student's first and last names as well as their student ID (Student ID, in this case, will be a 7 digit number. No input less or more than 7 will be accepted)

- upon inputting the following details, a message should pop up saying "You have successfully returned *book title* by *author name.*" otherwise, the message should say "Error to return a book! Please check if all information is correct"

Please comment on code if possible so I can understand and follow through. Please note, no method to return a book after a certain number of days is required. Will rate well if code works as requested! Thank you.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

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

Step: 3

blur-text-image

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

Hands On Database

Authors: Steve Conger

1st Edition

013610827X, 978-0136108276

More Books

Students also viewed these Databases questions

Question

What are the main goals/objectives of the IFRS Foundation?

Answered: 1 week ago

Question

What is focal length? Explain with a diagram and give an example.

Answered: 1 week ago

Question

What is physics and how does it apply in daily life?

Answered: 1 week ago