Question: Python You are online shopping at SuperAwesomeCouponDealsAndStuff.com. They offer two types of discounts, cash-off coupons and percent discount coupons. You must add tax after applying

Python

You are online shopping at SuperAwesomeCouponDealsAndStuff.com. They offer two types of discounts, cash-off coupons and percent discount coupons. You must add tax after applying coupons. If you have cash-off coupons, those must be applied first, then apply the percent discount coupons on the pre-tax amount.

The following is the order of calculations:

  1. The first is cash-off coupons, that you earn by shoppings. You may apply one $5 or $10 cash off per order.
  2. The second is percent discount coupons for 10%, 15%, or 20% off.
  3. The third is tax
  4. The fourth is shipping according to the the following guidelines:
  5. In this program, prompt the user for the the amount of the purchase, the cash coupon, the percent coupon. Then calculate and return the total order item.
  6. For instance, you have $5 off and 30% coupons and your item is $15.99, you will first take

  7. $15.99 - $5.00 = $10.99.
  8. 30% off $10.99 to get $7.69
  9. Add tax at 6% to get $8.15
  10. Add shipping cost before tax $5.95 to get $14.10
  11. Do not forget to use variables and constants where appropriate. Using varialabes, the first line might look like the following:

  12. cash_off_subtotal = price - cash_off

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!