Answered step by step
Verified Expert Solution
Question
1 Approved Answer
At a particular store, there are different tiers of discounts applied to your overall purchase depending on how much you spend. The discount that is
At a particular store, there are different tiers of discounts applied to your overall purchase depending on how much you spend.
The discount that is applied follows a specific rule:
If your subtotal is at least $ then a discount of is applied.
If your subtotal is at least $ but less than $ then a discount of is applied.
If your subtotal is at least $ but less than $ then a discount of is applied.
If your subtotal is less than $ then no discount is applied.
And, lastly, since this is Memphis, a sales tax is added to create the final total.
Write code in the cell below that asks for a user's subtotal at this store, and that computes and prints for them their final total after discount and sales tax.
For example, if their subtotal is $ then your code should tell them their total is dollars. And if their subtotal is $ then your code should tell them their total is dollars note you should round the final result to the nearest cent
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started