Bird
Raised Fist0

If the original price is $50, what is the correct final price after applying both discounts sequentially?

hard📝 Trade-off Q15 of Q15
LLD - Design — Online Shopping Cart
You are designing a system that applies multiple discounts: a 10% seasonal discount and a $5 coupon. If the original price is $50, what is the correct final price after applying both discounts sequentially?
A$40.5
B$45
C$40
D$42
Step-by-Step Solution
Solution:
  1. Step 1: Apply the $5 coupon discount first

    $50 - $5 = $45.
  2. Step 2: Apply the 10% seasonal discount

    $45 * 0.9 = $40.5.
  3. Step 3: Sequential discounts

    Coupon before percentage discount yields $40.5.
  4. Final Answer:

    $40.5 -> Option A
  5. Quick Check:

    Coupon then percentage = 40.5 [OK]
Quick Trick: Order of discounts affects final price [OK]
Common Mistakes:
MISTAKES
  • Applying discounts in wrong order
  • Adding discounts instead of subtracting
  • Ignoring percentage vs fixed discount difference

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More LLD Quizzes