Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Java Lab Exam Example You are asked to develop a Library system demo for the librarian. The system should allow the following functions: 1. Check
Java Lab Exam Example
You are asked to develop a Library system demo for the librarian. The system should allow the following functions:
1. Check-in Books
a. The system will request users to input the following fields information about books
i. Title
ii. Price
iii. Number of copies to be checked in
b. Notes and hints:
i. There should have no limit of how many books to be checked in at a time.
ii. You can use JOptionPanel or any other methods for retrieving user inputs.
iii. You may use the infinite loop and a break statement to implement this.
2. List books
a. The system will list out all books in the library in a nicely format.
b. Notes and hints:
i. You can use some escape characters for helping formatting the output.
3. Borrow books
a. The system will ask users to input the books title for borrow.
b. The system will also ask users to give the number of books to be borrowed.
c. The system will then list the current inventory of all books.
4. Return books
a. As the demo, the system will reuse the title of book from the previous input.
b. The system will only allow one books to be returned at a time.
c. The system will then list the current inventory of all books again for confirming the books are turned successfully.
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