Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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 applicationStep 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