Question: Java code Exercise 2 of 2 Library: Write a program that simulates a small library. Create a menu that lets the user choose to borrow

Java code

Java code Exercise 2 of 2 Library: Write a program that simulates

Exercise 2 of 2 Library: Write a program that simulates a small library. Create a menu that lets the user choose to borrow or to return a book. Upon selecting to borrow a book, show the user a list of books which are available to borrow. Let the user choose a book. Then give the user the option to return or borrow again. The new list of available books should not show books that are currently borrowed. Upon selecting to return a book, show the list of books the user has currently borrowed, and let them chose which book they want to return Create a class called "Book" that holds the title and author of the book. Also give the book a flag which indicates whether the book is available or not. Use this flag to determine the list of available books. Create a menu item called "Exit" to exit the application

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!