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

  Max number of dimensions for a c++ multidimensional array

Question: What is the MAX number of Dimensions for a C++ multidimensional array ? Can anyone provide the answer for given question show with example?

  Program to produce ten random permutations of numbers

In C++(must be able to compile in Visual Studio ): Write a program to produce ten random permutations of numbers 1 to 10.

  Write a program using vectors and iterators

Create a program that uses at least two functions that will be called from your main. This program is a number game program that asks for parts of your phone and after manipulating it mathematically, eventually outputs your entire phone number. The d..

  C programs hat print out the max, min, and the average value

Write three C programs that print out the max, min, and the average values of the data file included below. Be sure to include the outputs of the programs in your solutions. Use three data file structures (counter, sentinel, and neither counter/senti..

  One or more consecutive white spaces is a delimiter

Write a function which will determine how many words are in a given string. assume that one or more consecutive white spaces is a delimiter between words.

  Write an iterative function power

Write an iterative function power1 to compute xn for n >= 0 and write a recursive function power2 to compute xn by using the following recursive formulation

  20 integers saved in a file called "data.txt"

There are 20 integers saved in a file called "data.txt" (just a random txt file with some numbers) All integers are in the range from 1 to 10

  Define program testing & documentation

Devise a test plan carefully, making sure that the purpose of the particular test is clearly stated, the data for each test is specified (that is, any inputs expected from the user or the programmer), and a description of the expected result from ..

  Testing a program based on varying

Testing a program based on varying input values without knowing what the code looks like is called _____.With _____ testing, you make sure that every instruction in the code is executed at least once.

  Write a c program that copies the contents of one file

write a c program that copiest the contents of one file to a destination file. This program works by first prompting the user for the name of the source file and destination file.

  Write programme that allows a user to enter distinct words

Write a programme that allows a user to enter three distinct words and returns them as a single string

  Hypothetical method lock over an object lock

Imagine a hypothetical version of Java where the object lock is replaced by a method lock. Under this system a call to a synchronised method would assign a lock for that method to the calling thread.

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