Question: please use python to do this thanks The local store offers 3 kinds of chocolates - dark, milk, and whi dark chocolate is $1.90 per
The local store offers 3 kinds of chocolates - dark, milk, and whi dark chocolate is $1.90 per piece, the price of milk chocolate is and the price of white chocolate is $2.00 per piece. If you buy mor of chocolate (total of any kind) you get the discount 15 percent. pay a state tax 10.1 percent (if you get a discount, the tax is appli amount of the purchase). Write a program that asks the user to e of pieces of chocolate to buy for each kind of chocolate and then d The total purchase amount (in dollars): The discount amount (in dollars): The state tax to pay (in dollars): The total price to pay for chocolates (in dollars) Specification: The program should use the main function for getting inputs The program should use the function chocolate to calcula the purchase amount, the discount, tax, and the total. The n of chocolates should be used as arguments. . Prices of chocolates and the percentage of the discount sh global variable . All amounts should be showed as dollars rounded to two deci
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
