Code / Write a function named calcDiscount that calculates the discount on purchases from an on-line pants store.
All pants on the site sell for $20. Quantity discounts are given as follows:
Quantity Discount 1-9 none, 10-19 12%, 20-49 23%, 50-99 34%, 100 or more 45%.
Your function should accept the number of pants purchased as an argument and return the total cost after the discount.
Make sure returned value is formatted to *2* decimal places, as currency is normally displayed.
in python
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here