Calculating a discount that customers receive based on the value of their order. If the total amount ordered is less than $20.00, no discount will be given. If the total amount is between $20.00 and $50.00, a discount of 5% will be givem.
If the total amount is between $20.00 and $50.00, a discount of 5%will be given. If the total amount is greater than $50.00 and less than $100.00, a discount of 10% will be given.
If the total amount is $100.00 or more, a premium customer receives a 20% discount and a regular customer receives a 15% discount.