TORONTO KIDS COMPUTER CLUB | Sunday 16:00 Python Homework 06.09
16364
post-template-default,single,single-post,postid-16364,single-format-standard,ajax_fade,page_not_loaded,,qode-theme-ver-7.6.2,wpb-js-composer js-comp-ver-6.10.0,vc_responsive

Sunday 16:00 Python Homework 06.09

12 Jun Sunday 16:00 Python Homework 06.09

Question 1:

A store is having a sale. They’re giving 10 percent off purchases of $10 or lower, and 20
percent off purchases of greater than $10. Write a program that asks the purchase price and
displays the discount (10% or 20%)


Sample Input:

Your Purchases: 14


Sample Output:

Congratulations! You got 20 % discount


 

Question 2: (optional)

Continue write program of Question 1, print out the final price after the discount


Sample Output:

The final price after 20 % discount is 11.2

No Comments

Sorry, the comment form is closed at this time.