Question
Part 3) Python Program A software company sells a package that retails for $99. Quantity discounts are given according to the following table. Write a
Part 3) Python Program
A software company sells a package that retails for $99. Quantity discounts are given according to the following table. Write a program that asks for the number of units sold and computes the total cost.
Quantity | Discount |
10 19 | 20% |
20 49 | 30% |
50 99 | 40% |
100 or more | 50% |
So for example if you ordered 5 items it would cost you $495 (No discount).
If you ordered 25 items, it would cost you $1732.50 with 30% discount (25*99 25*99*0.3).
Note that you can use the round (a, 2) method to round a number to two decimal places. If a = 4.56789 and you code b = round (a, 2), then b will be 4.47.
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