Page 5 - PowerPoint Presentation
P. 5
Intro (2)
• Example:
• The university bookstore has a Kilobyte Day sale every October 24, giving an 8 percent
discount on all computer accessory purchases if the price is less than $128, and a 16
percent discount if the price is at least $128. Write a program that asks the cashier for the
original price and then prints the discounted price.