Question: 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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!