Write program to keep track of a hardware store''s inventory.

Assignment Help C/C++ Programming
Reference no: EM13938112

Write a program to keep track of a hardware store's inventory. The sore sell various items. For each item in the store the following information is kept: item ID, item name, number of pieces ordered, number of pieces currently in the store, number of pieces sold, manufacturer's price for the item, and the stores selling price. At the end of the week the store manager would like to see a printed report.

The total inventory is the total selling value of all the items currently in the store. The total number of items is the sum of the number of pieces of all the items in the store.

The program must be menu driven giving the users various choices such as checking whether an item is in the store, selling an item and printing the report. After inputing the data, sort it according to the items names. Also, after an item is sold, update the appropriate counts.

Initially, the number of pieces (of an item) in the store is the same as the number of pieces ordered, and the number of pieces of an item sold is zero. Input to the program is a file consisting of data in the following form: ItemID, ItemName, pOrdered, manufPrice, sellingPrice.

Use seven parallel vectors to store the information. The program must contain at least the following functions: one to input data into the vectors, one to display the menu, one to sell an item and one to print the report for the manager.

Since I am just learning C++ the solution may need to be "dummied down" a little bit (or a lot) so that I can understand how the code is working.

Reference no: EM13938112

Questions Cloud

Did the introduction develop the hypotheses logically : The hypothesis that was being tested was about the anti-predation behaviour exhibited by the while-tailed deer and how the response is affected in the presence of the predator - Did the introduction develop the hypotheses logically
How does this reflect the biodiversity of life over time : Look at plants and animals. Select a plant and an animal and see how it evolved up the Tree of Life from the beginning of time to the present. How did this species change over time? How did it start out and how did it evolve.
Business and functional level strategy : Assess the core areas of corporate, business and functional level strategy relevant to the international hospitality industry.
What is effective cost of borrowing in this case : Your firm has an average collection period of 26 days. Current practice is to factor all receivables immediately at a discount of 1.6 percent. What is the effective cost of borrowing in this case?
Write program to keep track of a hardware store''s inventory. : Use seven parallel vectors to store the information. The program must contain at least the following functions: one to input data into the vectors, one to display the menu, one to sell an item and one to print the report for the manager.
Computing the firms weighted average cost of capital : In August of 2009 the capital of the Emerson Electric Corporation (EMR) (measured in book and market values) appeared as follows: What weights should Emerson use when computing the firm’s weighted average cost of capital?
Image of an unnamed macaque : Using the lecture, weekly readings and keywords from Weeks 7 and 9, discuss the following quotation from the textbook in relation to this YouTube video titled "Emma Watson at the HeForShe Campaign 2014 - Official UN Video". You will need to watch ..
Calculate the fixed costs per month and the variable cost : Calculate the fixed costs per month and the variable cost per occupied room using the high low method.
Convertible bond-calculate your gain or loss : You own a convertible bond that has a 6% yield, 4.5% coupon rate, pays semiannually, and has 3 years to maturity. The conversion rate is 8. The current stock price is 127.3. Calculate your gain or loss if you decide to convert.

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Define inheritance and polymorphism

Inheritance and Polymorphism, The objective of this programming assignment is to experience the use of inheritance in Java and to see how polymorphism works with inheritance in Java.

  Program to next the loops in either direction

You can write your program to next the loops in either direction, that is, process row-by-row or column-by-column. Explain which way you would choose to process the data.

  The keyboard and display on the screen

Use the readLn and writeStr functions to read from the keyboard and display on the screen. Your function to convert from a decimal text string to an int should be placed in a separate function. this problem cannot be solved by simply shifting bit pat..

  Struct complex

A complex number can be represented by two parts, real and image. A series complex data can be organized as a group of elements by linked list, which is shown as below: struct Complex

  Write a program to generate a table of conversions

Write a program to generate a table of conversions from Fahrenheit to Kelvin for values from 0 F to 200 F. Allow the user to enter the increment in degrees Fahrenheit between lines. Use a (do while loop) in your solution.

  Write the two redox half-reactions

How would I write the two redox half-reactions for these: Ag/Ag+| | H+/H2 Cu/Cu2+| | H+/H2 H2/H+| | Zn2+/Zn

  Write a program that accepts as input, without prompts

Write a program that accepts as input, without prompts, a series of short values, terminated by end of file. The program outputs one line:

  Themartinweight loss clinic maintains two patient files

TheMartinWeight Loss Clinic maintains two patient files—one for male clients and one for female clients. Each record contains the name of a patient and current total weight loss in pounds. Each file is in descending weight loss order. Design the logi..

  Calculate the cube of a number

Write a program that will calculate the cube of a number. Do this by writing a user defined function that returns the cube of the value passed to it. Print out the results from main.

  Write a program to determine the cost of painting a room

implement the program to find the cost of painting a room - Write a program to determine the cost of painting a room.

  Analyze the time complexity and space complexity

Develop a simple prototype version of algorithm in C++. Specifically, you will build an in-place, order reversal algorithm - analyze the time complexity and space complexity of your algorithm

  Prompts the user to enter the total number of cookies

7. A box of cookies can hold 24 cookies, and a container can hold 75 boxes of cookies. Write a program that prompts the user to enter the total number of cookies, the number of cookies in a box, and the number of cookie boxes in a container.

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