This preview shows page 1. Sign up to view the full content.
Unformatted text preview: minutesDay = minutesDay * .1 amountDue = 25 + minutesDay if minutesNight< 100 amountDue = 0 else minutesNight = minutesNight 100 minutesNight = minutesNight * .05 amountDue = 25 + minutesNight Constraints- minutes must be greater than 0, code must start with p or r Assumptions- all numbers are positive Design: 1. Get Input a. account number b. service code c. number of minutes used d. if premium: day minutes, night minutes 2. Calculations a. Amount due 3. Print Output a. Account number b. Type of service c. Number of minutes the telephone service was used d. Number of minutes the service was used during the night...
View Full Document
This note was uploaded on 04/07/2008 for the course CSC 135 taught by Professor Frye during the Fall '07 term at Kutztown.
- Fall '07