Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

please use python to do this thanks image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Linked Data A Geographic Perspective

Authors: Glen Hart, Catherine Dolbear

1st Edition

1000218910, 9781000218916

More Books

Students also viewed these Databases questions