Question
USING PYTHON : The store sells gourmet chocolates: 1) Milk Chocolate @ $8.50 per pound 2) Dark European Chocolate @ $9.75 per pound 3) White
USING PYTHON :
The store sells gourmet chocolates:
1) Milk Chocolate @ $8.50 per pound
2) Dark European Chocolate @ $9.75 per pound
3) White Chocolate @ $10.50 per pound
4) European Truffles @ $12.50 per pound
The store allows a customer discount based on:
1) Under $20.00 No Discount
2) $20.00 to $39.99 10% off
3) $40.00 to $59.99 15% off
4) $60.00 to $79.99 20% off
5) $80.00 and over 25% off
Shipping & Handling is 10% of the net total (gross subtotal discount).
Total Owed is Net Total plus Shipping and Handling
---- Using a nested IFELIF, determine the discount based on the gross subtotal of the order (excluding the shipping and handling.)----??????? CODE USING PYTHON !!
Example of Input and Output:
1 of 5 - Enter Customer ID: AS231
2 of 5 - Enter the number of pounds of Milk Chocolate @ $8.50: 1.45
3 of 5 - Enter the number of pounds of Dark Chocolate @ $9.75: 0.75
4 of 5 - Enter the number of pounds of White Chocolate @ $10.50: 2
5 of 5 - Enter the number of pounds of Truffle Chocolates @ $12.50: 0.5
Invoice for Customer AS231:
1.45 lbs of Milk Chocolate @$ 8.50 per lb. $ 12.32
0.75 lbs of Dark Chocolate @$ 9.75 per lb. $ 7.31
2.0 lbs of White Chocolate @$ 10.50 per lb. $ 21.00
0.5 lbs of Truffles @$ 12.50 per lb. $ 6.25
Subtotal $ 46.89
Less Discount of 15.0 % $ 7.03
Net Subtotal $ 39.85
Shipping @ 10.0 % $ 3.99
Grand Total $ 43.84
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access with AI-Powered Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started