Question: Assignment # 2: A box of chocolates Plase use Python to create the code Chocolate cream prices Dark chocolate creams cost $1.25 each Milk chocolate

Assignment # 2: A box of chocolates

Plase use Python to create the code

Chocolate cream prices

Dark chocolate creams cost $1.25 each

Milk chocolate creams cost $0.95 each

White chocolate creams cost $1.30 each

Create an application to calculate the price of the chocolates

Place your name at the top as a comment

# Don Riggs

Then state the purpose of your program

# This program calculates . . .

Use comments to explain what the program does

Assign the price of each variety of chocolate to a variable

The user wishes to purchase 3 dark chocolate creams, 2 milk chocolate creams, and 1 white chocolate cream

Using variables, write code that calculates the cost of the chocolates

Sales tax = 7.95%

Change sales tax to a decimal and assign it to a variable

Calculate the total cost of the chocolates by adding the sales tax

Your output should be labeled

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!