help in CSC 141, looops ,counters and error checking
A company sells to cleaning products
Bluemagic (for bathroom) sells for $5.00 per bottle and costs $1.50 to produce Kitchen magic(for kitchen) sells $6.00 per bottle and $2.00 to produce Customers charged 2.00 per order for shipping and handling. But it costs the company only $0.50 to ship each bottle. If a customer orders more than 5 bottles on an order they get: 10% off their total product cost and free shipping and handling. Sample run: enter order number (-1 when done) 90210 enter product (B(athMagic) or (K(itchenMagic)> K enter number of bottles > 2 Order 90210 2 bottles KitchenMagic Price of order:$12.00 + $2.00 shipping Please pay: $14.00 // this continues until the user enters a -1 for order number // after this happens the following totals are printed Bottles sold 120 bottles BathMagic (60.0%) 80 bottles KitchenMagic (40.0%) Total revenue collected $xx,xxx.xx Total cost of producing and shipping $xx,xxx.xx Total profit $xx,xxx.xx Average profit per order $xx,xxx.xx Notes: Total Revenue collected: Sum of all customer payments Total cost of producing and shipping: Total cost to manufacture and ship all items sold Total profit= total revenue-(cost to produce and ship) Average profit per order= total profit/ number of orders |
|
All times are GMT -5. The time now is 07:20 PM. |