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:
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.
For instance, you have $5 off and 30% coupons and your item is
$15.99, you will first take
Do not forget to use variables and constants where appropriate.
Using varialabes, the first line might look like the
following:
Name your file coupon_calculations.py
python You are online shopping at SuperAwesomeCouponDealsAndStuff.com. They offer two types of discounts, cash-off coupo
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am