Link to home
Start Free TrialLog in
Avatar of chicka20
chicka20

asked on

C++ Help?

I am a first year compsci university student and i'm havin trouble with the
following c++ question.
anyway sort of help would be much appreciated
thanks.

Modify the grocery store program so that it will calculate the profit and keep track of inventory levels for a variable number of grocery items, up to a maximum of 20. For each item the user inputs an item number, a 3 digit integer, the number if items initially on hand, and the number of items sold. Cost and selling prices are stored constant values. Ma and Pa classify items according to customer demand which is calculated as the percentage of items sold per the initial number of items on hand.

demand = items sold/initial on hand x 100

Their classification system is as follows:



0 <= demand < 20      = Poor
20 <= demand < 50      = Low
50 <= demand < 70      = Good
demand >= 70             = Excellent
For each item the program will output the item number, the profit made from sales of that item, the number of that type of item remaining in stock and classify the demand for the item.
After processing details for each item, the program will print out the total profit from all sales, and the average profit per item. Your program should check for valid input.

NOTE: Your program does not need to use sorting or searching!

Avatar of DrDelphi
DrDelphi

Chicka,
 It is the generally accepted pratice here that homework questions are not answered here. I personally have seen instances where a person will give a pointer, or suggest a link to find out about the question at hand, but to the best of my knowledge it is not permitted to do someone elses homework. Nor should it be. If I answer this for you, what have you learned?

-DrDelphi
Avatar of chicka20

ASKER

i'm only after any sort of help e.g pointers. i do not wish you to solve this for me as i won't have learnt anything.
what is the T.A. there for? go to him and ask for pointers.
ASKER CERTIFIED SOLUTION
Avatar of Silus
Silus

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Many Thanks