21 Feb Aurora Tuesday 18:30 Python Homework 20.02.18.
Posted at 03:39h in Uncategorized 0 Comments
A store is having a sale. They’re giving 2 dollars off purchases of $10 or lower, and 3 dollars off purchases of greater than $10. However, there’s no discount if you purchase less than 5 dollars. Write a program that asks the purchase price and displays the final price.
Sample Input 1:
Sample Output 1:
The final price after discount is 17 dollars
Sample Input 2:
Sample Output 2:
The final price after discount is 6 dollars
Sample Input 3:
Sample Output 3:
The final price after discount is 4 dollars
Sorry, the comment form is closed at this time.