Question: Write a program discount. py that performs the following, A retail store is having a 25% sale. There is also a $5 additional coupon (applied

Write a program discount.py that performs the following,

A retail store is having a 25% sale. There is also a $5 additional coupon (applied after the sales price) for spending over $30 and $10 coupon for spending over $50.

Define a function called finalPrice which takes one parameters, the original price, calculates the final price (sales price with coupons applied), then returns the final price.

Call finalPrice function in the program to produce a sales price table that shows the final prices as shown in the sample output.

Sample output: Original Price Final Price

$19.99 $14.99

$29.99 $22.49

$39.99 $29.99

$49.99 $32.49

$59.99 $39.99

$69.99 $42.49

$79.99 $49.99

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!