ASSISTANCE NEEDED: Incremental Program Development, Vectors/Arrays, Loops, Output formatting

**I have a project that, unfortunately, the professor has not taught the class how to do. We use Dev-C++ programming.**
INSTRUCTIONS:
1) The product and price list is to be entered on the keyboard. Each line will have a product number, product name, and unit price listed for it. The end of product items will be signified by a single line with a -1 on it.
2) For each order
a. the first line will be the customer name (one string)
b. the second line will be the customer street address (one string)
c. the third line will have the city, state, and zip (as three separate strings)
d. the fourth and subsequent line will have the product number and quantity of each item ordered.
3) Bills should be written to the screen. The billing should have the appropriate return address and billing address. It should have an attractive form and print the quantity ordered, name of item sold, price-per-unit, and price extended for the quantity sold as a detail line for each toupee type where
more than 0 units are sold.
4) After the detail line there should be a space for discounts taken. We will discount our prices as follows (round all discounts to the nearest penny):
a. Over $1000 gross sales will result in a 20% discount
b. Over $500 gross sales will result in a 10% discount
c. Over $100 gross sales will result in a 5% discount
d. No other discounts apply.
5) Shipping is (make sure to round to the nearest penny)
a. For orders over $1000 after discounts shipping will be $10 + 2% of the total.
b. For orders over $500 after discounts shipping will be $10 + 3% of the total.
c. For orders over $100 after discounts shipping will be $10 + 4% of the total.
d. For orders up to $100 after discounts shipping will be $10.
6) Although Prof. Grover insists that a hairpiece is an “article of clothing” and sales taxes are inappropriate the Pennsylvania department of revenue disagrees. If the order is to be shipped to a person in Pennsylvania “Rug-of-the-Day” must collect 6% (rounded to the nearest penny) sales tax. Pennsylvania collects sales tax on SHIPPING as well as on the merchandise total. You are also to collect the appropriate tax for states which have “Rug-of-the-Day” bricks and mortar stores located within them – these are Ohio, New York, and West Virginia.

EXAMPLE:
Sample input:
256 MJ70 6.95
3213 Hemsworth 9.95
2224 Golfer 12.95
-1
Hugh Jazz
126 N Main St
Greenville PA 16125
3213 1
256 3
2224 5
Ivan Owfulich
143 Washington Ave
Alma MI 48801
256 20
2224 15

Output from the program should be:

BILLING FROM
Rug-of-the-Day Disposable Toupee
75 College Avenue
Greenville, PA 16125


Shipped to:
Hugh Jazz
126 N Main St
Greenville, PA 16125

Quantity Item Ordered Unit price Extended price
-------------------------------------------------------------------------
3 MJ70 $ 6.95 $20.85
1 Hemsworth $ 9.95 $ 9.95
5 Golfer $12.95 $64.75
-------------------------------------------------------------------------
*** Total for this order *** $95.55
Shipping on this order is $10.00
Tax due on this order is $ 6.33
=====================================================================
TOTAL AMOUNT DUE - PLEASE PAY PROMPTLY $ 111.88

BILLING FROM
Rug-of-the-Day Disposable Toupee
75 College Avenue
Greenville, PA 16125


Shipped to:
Ivan Owfulich
143 Washington Ave
Detroit, MI 48801

Quantity Item Ordered Unit price Extended price
-------------------------------------------------------------------------
3 MJ70 $ 6.95 $139.00
5 Golfer $12.95 $194.25
-------------------------------------------------------------------------
*** Total for this order *** $333.25
Discount on this order is $ 16.66
Subtotal for this order is $316.59
Shipping on this order is $ 22.66
Tax due on this order is $ 0.00
=====================================================================
TOTAL AMOUNT DUE - PLEASE PAY PROMPTLY $339.25

**If anyone could help me even start this program, I would greatly appreciate it! Thank you!**
Topic archived. No new replies allowed.