Answered step by step
Verified Expert Solution
Link Copied!

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 $200, then a discount of 20% is applied.
If your subtotal is at least $100, but less than $200, then a discount of 12% is applied.
If your subtotal is at least $50, but less than $100, then a discount of 5% is applied.
If your subtotal is less than $50, then no discount is applied.
And, lastly, since this is Memphis, a 9.75% 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 $225, then your code should tell them their total is 197.55 dollars. And if their subtotal is $70, then your code should tell them their total is 72.98 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

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

Professional Microsoft SQL Server 2014 Administration

Authors: Adam Jorgensen, Bradley Ball

1st Edition

111885926X, 9781118859261

More Books

Students also viewed these Databases questions

Question

Provide examples of Dimensional Tables.

Answered: 1 week ago