Question: NOTE: Please use java and linked list. You have a job at a video store and you want to create a program that will maintain

NOTE: Please use java and linked list.

You have a job at a video store and you want to create a program that will maintain inventory of videos that are for sale. The inventory consists of a list of video titles. Each title has three values: the number of videos in stock, the number that should be in stock, and a waitlist.

For Example:

Video A

In stock: 4

should be: 3

waitlisted: 0

Video B

In stock: 2

Should be: 3

waitlisted: 1

Video C

stock: 5

should be: 5

waitlisted: 0

INPUTS: single letter commands (or the methods) used to deal with the linked list.

A linked list that contains the video titles as shown above

A linked list that contains information on incoming shipments (see command D)

OUTPUT: An outputted txt file of the inventory.

This program should utilize a linked list.

This program should also be menu driven.

The single letter commands that used to manipulate the data (Or the methods used to manipulate the linked list):

- Display inventory information for a title (I)

- List the inventory by title alphabetically (L)

- add a new title (A)

- modify the want value or the "should be" stock of a title (M)

- Take delivery of a shipment. So, it reads the linked list (as mentioned in the inputs), reserves for the waitlisted and updates the values in the inventory. NOTE: this is where the second linked list, comes in. (D)

- A purchase order that brings the "stock" to the same value as the "Should be" stock. (Too little inventory). (O)

- A return order that does the same thing as mentioned above (too many videos in stock) (R)

- Selling will decrease the inventory of a video by 1. (S)

- Quit

Note: I'm very confused and could use the help. Please use java and use a Linked List .

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!