help with understanding c++

Feb 20, 2015 at 11:19pm
i am new to c++ programming and lost in that class., the professor gave a homework and i do not understand it. i have google . a nd went on youtube to get videos to understand it but still . please help me solve this c++ program homework :


A mail order house sells five different products whose retail prices
are: product 1: Cheese — $2.98, product 2: Ramen—$4.50, product 3: Pizza (frozen)—$9.98, product 4: Eggs (Organic)—$4.49 and product 5: Grilled Chicken—
$6.87.

1. Each time, display 5 items with product name and price and ask user item number and quantity. You must validate the product number in between 1 and 5 and quantity greater than 0. If it is not valid, you must keep ask user till user types a valid input.

2. Each shopping item should be displayed with total amount for each item.

3. User must be able to enter shopping list till user enter -1.

3. Display total amount before you exit.
Last edited on Feb 20, 2015 at 11:27pm
Feb 21, 2015 at 3:54am
see this page
http://www.cplusplus.com/doc/tutorial/
read first then any help post here.
Feb 21, 2015 at 4:13am
can you please help me with this program !
Feb 21, 2015 at 5:16am
The people on this site will gladly take the time to help you with pieces of your HW, but we won't start it or do it for you.

You should show us the code you have already, and then explain specifically what part of the problem or code that you do not understand and are stuck on.
Feb 21, 2015 at 5:20am
What do you have so far? off had i would check into while loop, if statements, or a multiple fuction program
Topic archived. No new replies allowed.