Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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_2

Step: 3

blur-text-image_3

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

Database Support For Data Mining Applications Discovering Knowledge With Inductive Queries Lnai 2682

Authors: Rosa Meo ,Pier L. Lanzi ,Mika Klemettinen

2004th Edition

3540224793, 978-3540224792

More Books

Students also viewed these Databases questions

Question

What happens when heat is added to silicon?

Answered: 1 week ago

Question

To find integral of sin(logx) .

Answered: 1 week ago