Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

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

The Database Experts Guide To Database 2

Authors: Bruce L. Larson

1st Edition

0070232679, 978-0070232679

More Books

Students also viewed these Databases questions