Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Download: http://solutionzip.com/downloads/shippingcost-cpp/
- Calculate and print the total items purchased, sales tax depend on the location of the buyer and the shipping
- costs in the table below. It can be unspecified number of items,your program should be able to read as many
- entries as the buyer wishes to buy.
- Start with a welcome and menu statement
- Amount of purchase
- Shipping costs
- Less than 5,000
- 60.00
- 5,000.01 – 7,500
- 50.00
- 7,500.01 – 125,00
- 40.00
- 12500,01 – 150,00
- 30.00
- 15000.01 – 250,00
- 20.00
- 25000.01 – 30,000
- 10.00
- More than 30,000
- free
- Sales tax
- Dubai
- 8%
- China
- 7.5%
- Mumbai
- 6.75%
- America
- 9%
- Australia
- 5.75%
- singapore
- 4.75%
- Others no tax
- 7 or more items shipped in 2 days
- Less than 7 item shipped in 5 days
- Input
- - Individual prices for item purchased
- - Quantity if each item purchased
- - Location of the purchaser resides
- Output
- - Total item purchased
- - Total items costs
- - Sales tax
- - Shipping costs
- - Total costs
- End of the output a thank you statement
- Example
- Location of purchaser china
- Total items purchased 6
- Total cost before tax 14000,00
- Sales tax 10.10
- Shipping costs 30.00
- Total price ———–
- Thank you for your purchase your should be receiving your order in
- Download: http://solutionzip.com/downloads/shippingcost-cpp/
Advertisement
Add Comment
Please, Sign In to add comment