Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Design And SQL For DB2

Authors: James Cooper

1st Edition

1583473572, 978-1583473573

More Books

Students also viewed these Databases questions

Question

=+How do the functions of HR vary with these various choices?

Answered: 1 week ago