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
- Fall '07
- Cellular network, account number