TORONTO KIDS COMPUTER CLUB | PMCA Sunday 10:00 Practice -05.
post-template-default,single,single-post,postid-17614,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

PMCA Sunday 10:00 Practice -05.

05 Jun PMCA Sunday 10:00 Practice -05.


A store is having a sale. They’re giving $10 off when you purchase more than $100. Write a program that asks the purchase price and displays the final price.

Sample Input 1:
Your purchase: 90

Sample Output 1:
You final price is $90

Sample Input 2:
Your purchase: 120

Sample Output 2:
your final price is $110

You need to use float(input(...)) to get how much you purchased
You need to use if statement to calculate the final price if your purchases is more than 100
No Comments

Sorry, the comment form is closed at this time.