Question: Python problem 2. (13 Points) Write a program Sales.py that performs the following, A retail store sale T-shirts. T-shirt cost $8.99 each. Sales tax is

Python problem
 Python problem 2. (13 Points) Write a program Sales.py that performs

2. (13 Points) Write a program Sales.py that performs the following, A retail store sale T-shirts. T-shirt cost $8.99 each. Sales tax is 8.5%. Define a function called totalcost, def totalcost(n), which takes one parameter, the number of T-shirts, calculates and returns the totalcost for purchasing the T- shirts (cost of the shirts with tax applied). Call totalcost function in the program to produce a sales table that shows the total cost as shown in the sample output. (No need to take user input). . . (3 pts)Enhancement: The store now has a sale, buy 3 and get 1 free. Define another functions, def salescost(n) to calculate the cost with the sales applied. Call the salescost function in the program to show the sales cost. Sample output: (with enhancement) T-shirt unit price: $ 8.99 Tax rate: 8.50% # of T-shirts Original Cost 9.75 $19.51 $29.26 $ 39.02 $ 48.77 $58.52 $ 68.28 78.03 $ 87.79 $97.54 Sales Cost $ 9.75 19.51 $29.26 29.26 $39.02 $48.77 $58.52 $ 58.52 $ 68.28 $ 78.03 4 5 7 10

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!