Create a list of inventory parts and their quantities sold

Assignment Help Data Structure & Algorithms
Reference no: EM131158975

Write a program that uses a hashing algorithm to create a list of inventory parts and their quantities sold in the past month. After creating the hashed list, write a simple menu-driven user interface that allows the user to select from the following options:

a. Search for an inventory item and report its quantity sold

b. Print the inventory parts and their quantities sold

c. Analyze the efficiency of the hashing algorithm

The parts data are contained in a text file, as shown in Table 13-4. The key is the three-digit part number. The quantity represents the units sold during the past month.

Part Number

Quantity

112

12

130

30

156

56

173

17

197

19

150

50

166

66

113

13

123

12

143

14

167

16

189

18

193

19

117

11

176

76

Table: Data for hashing program

Three outputs are required from your program.

a. Test the following searches and return appropriate messages. You may test other part numbers if you desire, but the following tests must be completed first:

? Search for 112
? Search for 126
? Search for 173

b. When requested, analyze the efficiency of the hashing algorithm for this set of data. Your printout should follow the report format shown below.

1378_9d206f6d-81ea-4fa0-a060-0bac98eeae52.jpg

c. The printout of the entire contents of the list should use the following format:

1787_af63904d-f647-497c-a50d-64a126704c11.jpg

Reference no: EM131158975

Questions Cloud

Understand the concept of methodologies : Explain why is it important to understand the concept of methodologies. If most companies do not use methodologies, why should you learn to use them?
What is the costly signaling theory of ritual : What is the "costly signaling theory of ritual," and what role might it play in the emergence of "demanding religious groups"? Give five functions of religion in society with an example for each.
Analyze financial statements of a publicly traded company : What is the amount of property and equipment on the balance sheet for the two most recent years? - What is the amount of accumulated depreciation and the depreciation expense?
Fundamental ideas of software engineering : What are the four important attributes that all professional software should have? Suggest four other attributes that may sometimes be significant.
Create a list of inventory parts and their quantities sold : Write a program that uses a hashing algorithm to create a list of inventory parts and their quantities sold in the past month. After creating the hashed list, write a simple menu-driven user interface.
Which of the most to refute the concept of vitalism : The concept of vitalism is based on a belief in a life force outside the jurisdiction of physical and chemical laws. According to this belief, organic compounds can arise only within living organisms. Which of the following did the most to refute ..
What changes would you like to suggest to improve security : ? What changes would you like to suggest to improve security? Note that any changes would have to be cost-effective or justified in some other way. Can you suggest additions to the points covered in the slide
Are there differences with other biomaterial based products : Describe the major technical areas involved in engineering a new biomaterial such as a contact lens. Are there differences with other biomaterial based products?
What methodology is best suited for your application : Define how each software development methodology's history is affected by technology -  Describe the application and how it would meet its goals. What methodology is best suited for your application and why?

Reviews

Write a Review

Data Structure & Algorithms Questions & Answers

  Implement an open hash table

In this programming assignment you will implement an open hash table and compare the performance of four hash functions using various prime table sizes.

  Use a search tree to find the solution

Explain how will use a search tree to find the solution.

  How to access virtualised applications through unicore

How to access virtualised applications through UNICORE

  Recursive tree algorithms

Write a recursive function to determine if a binary tree is a binary search tree.

  Determine the mean salary as well as the number of salaries

Determine the mean salary as well as the number of salaries.

  Currency conversion development

Currency Conversion Development

  Cloud computing assignment

WSDL service that receives a request for a stock market quote and returns the quote

  Design a gui and implement tic tac toe game in java

Design a GUI and implement Tic Tac Toe game in java

  Recursive implementation of euclids algorithm

Write a recursive implementation of Euclid's algorithm for finding the greatest common divisor (GCD) of two integers

  Data structures for a single algorithm

Data structures for a single algorithm

  Write the selection sort algorithm

Write the selection sort algorithm

  Design of sample and hold amplifiers for 100 msps by using n

The report is divided into four main parts. The introduction about sample, hold amplifier and design, bootstrap switch design followed by simulation results.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd