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.
   1   2   3   4   5   6   7   8   9   10