Question: This is to be written in Java The goal of this project is to create a personal lending library tool. The user wants to keep

This is to be written in Java

The goal of this project is to create a personal lending library tool. The user wants to keep track of

their movies and games which ones they own, whether or not they are currently loaned out to anyone,

and if so, who they were loaned to and on what date. For each item in the library, the program should

know its title and format. For a movie, the format is BlueRay or DVD. For a game, the format is the

platform the game runs on, such as Windows, Mac, XBox, Playstation, etc. The program should be

capable of storing up to 100 items in the library. Right now our library will be wiped when the

program terminates, but in the next half of the class we will learn how to make the information stick

around between program executions.

The program should be capable of the following actions:

Adding a new item to the library

Marking an item in the library as on loan

Listing all of the items in the library (title and format and, if it is currently on loan, the person it

is loaned to and the date of the loan)

Marking an item as returned

Sample Run

1. Add new item

2. Mark an item as on loan

3. List all items

4. Mark an item as returned

5. Quit

What would you like to do? 1

What is the title?

Star Wars

What is the format?

DVD

1. Add new item

2. Mark an item as on loan

3. List all items

4. Mark an item as returned

5. Quit

What would you like to do? 1

What is the title?

Bioshock Infinite

What is the format?

XBox 360

1. Add new item

2. Mark an item as on loan

3. List all items

4. Mark an item as returned

5. Quit

What would you like to do? 2

Which item (enter the title)?

Aliens

I'm sorry, I couldn't find Aliens in the library.

1. Add new item

2. Mark an item as on loan

3. List all items

4. Mark an item as returned

5. Quit

What would you like to do? 2

Which item (enter the title)?

Bioshock Infinite

Who are you loaning it to?

Mike

When did you loan it to them?

April 2nd

1. Add new item

2. Mark an item as on loan

3. List all items

4. Mark an item as returned

5. Quit

What would you like to do? 2

Which item (enter the title)?

Bioshock Infinite

Who are you loaning it to?

James

When did you loan it to them?

April 5th

Bioshock Infinite is already on loan to Mike

1. Add new item

2. Mark an item as on loan

3. List all items

4. Mark an item as returned

5. Quit

What would you like to do? 3

Star Wars (DVD)

Bioshock Infinite (XBox 360) loaned to Mike on April 2nd

1. Add new item

2. Mark an item as on loan

3. List all items

4. Mark an item as returned

5. Quit

What would you like to do? 4

Which item (enter the title)?

Star Wars

Star Wars is not currently on loan

1. Add new item

2. Mark an item as on loan

3. List all items

4. Mark an item as returned

5. Quit

What would you like to do? 4

Which item (enter the title)?

Aliens

I'm sorry, I couldn't find Aliens in the library.

1. Add new item

2. Mark an item as on loan

3. List all items

4. Mark an item as returned

5. Quit

What would you like to do? 4

Which item (enter the title)?

Bioshock Infinite

1. Add new item

2. Mark an item as on loan

3. List all items

4. Mark an item as returned

5. Quit

What would you like to do? 3

Star Wars (DVD)

Bioshock Infinite (XBox 360)

1. Add new item

2. Mark an item as on loan

3. List all items

4. Mark an item as returned

5. Quit

What would you like to do? 5

Goodbye!

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!