Allow a user to manage the inventory of a small store

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

Program: Write a C++ program that will allow a user to manage the inventory of a small store.  The inventory for the small store will contain the following information for each product in the inventory:

product name (i.e. "Apple iPhone 3GS 8GB", may contain spaces in it, must be unique)

locator (string with no spaces, used to physically locate product, not unique)

quantity (how many of this product in stock, greater than or equal to 0)

price (in dollars and cents, greater than 0)

Note: Your program should be able to store up to 100 different products.

The program should offer the user a menu with the subsequent options:

1. Add a new product to the inventory (prompt user for input values).

2. Remove a product from the inventory (by product name).

3. Adjust the quantity of a product (given the product name and change amount).

4. Display the information for a product (given the product name).

5. Display the inventory sorted by product name.

6. Quit

The program should do the selected operation and then re-display the menu.

 

Reference no: EM13698818

Questions Cloud

Store the grades that you read in an arraylist : We expect the file to contain grades represented by integer values, one per line. If you encounter a value that is not an integer, you should throw an exception, print a message to the console, skip that value, and continue processing.
A reaction is second order with respect to a : Question- A reaction is second order with respect to [A] and first order with respect to [B]. If the [A] is decreased by a factor of 3 while [B] remains constant, by what factor will the rate change
Find smallest element and its index : Write a C++ program that inputs 10 integers into an array and displays the inputs, the smallest element and its index
What was the mass percent of arsenic trichloride : o this solution was added 1.670 grams of KI and 50.00 mL of a 0.00850 M KIO3 solution. The excess I3- was titrated with 50.00 mL of a 0.02000 M Na2S2O3 solution. What was the mass percent of arsenic trichloride in the original sample
Allow a user to manage the inventory of a small store : Write a C++ program that will allow a user to manage the inventory of a small store.  The inventory for the small store will contain the following information for each product in the inventory:
Explain a solution of 3-phenylpropyl-bromide : Question- In a gridnard reaction Magnesium, a crystal of iodine, and a stir bar are but in a flask at the bottom of a reflux condenser. A solution of 3-phenylpropyl-bromide and anhydrous diethyl ether are introduced into the warm flask.
Predicate function play in an attribute grammar : What role does a predicate function play in an attribute grammar and what role does a lookup function play in an attribute grammar?
Find the standard sop : Find the standard SOP (sum of product) and POS (product of sum) expression of the subsequent Boolean function. F(A,B,C,D) = A(B' + CD') + A'BC'
What is the probability that a dishonest claimant : What is the probability that a dishonest claimant is falsely verified as an authentic entity, i.e., what is the probability that the dishonest claimant responds correctly to all 11 challenges?

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Write c function to sort one dimensional integer array

Consider the values sorted in the array. Sort it in ascending order using Bubble sort technique showing all iterations: write C function to sort one dimensional integer array in ascending order.

  Recursive method void printrevers

Write a c language program and I also need executable file for this program - Write a recursive method

  Define a class called plot that has private members of lengt

Define a class called Plot that has private members of length and width. Include a constructor and a public function that calculates the area and the length of the boundary of the field.

  Write in c++ another overloaded operator

Write in C++ another overloaded operator to go in the program that has Treasury. Overload the forward slash /  so that in the main program, you can declare sale to be of type Treasury, and commission to be of type Treasury, and commispctage to be of ..

  Write a program that uses joptionpanes to perform

For example, if the distance of travel is 30 kilometers, the time of travel is 2 hours, then the speed is 30/2 = 15 (kilometers per hour).

  C program to calculate power loss in transmission line

Write program in C to calculate the power loss in transmission line with resistance of 0.05 ohms/mile. Calculate power loss if 500 kW of power is transmitted from power generation station

  Write a program that generates all the factors of a number

Write a program that generates all the factors of a number entered by the user. For instance, the number 12 has the factors 2 * 2 * 3.

  Write a c++ program to grade multiple-choice

Write a C++ program to grade multiple-choice, including True/False, questions for an exam given in a class. A class may have one or more sections.

  Random permutations

Write a program in C++ that gives a prompt to the users, asking for an integer M.It then prints out a M different random permutations, one on each of M lines, of the numbers 1, 2, ... , 10, separated by spaces or tabs.

  Write a function to compute the volume of a cone

write a function to compute the volume of a cone by using the base radius r and the height h of the cone as the parameters of the function Vcone = xr^2h/3

  The minimal spanning tree algorithm

discuss the minimal spanning tree algorithm. Describe the advantages and disadvantages of this algorithm. List the circumstances best suited for the minimal spanning tree algorithm.

  If a class is derived protected

If a class is derived protected from a base class, explain how this affects the inheritance of all public, protected, and private members of the base class by the derived class.

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