Your program should output the account number, type of service, number of minutes the telephone service was used, and the amount due from the user.įor the premium service, the customer may be using the service during the day and the night. Your program should prompt the user to enter an account number, a service code (type char), and the number of minutes the service was used.Ī service code of R or r means regular service a service code of P or p means premium service. to 6:00 a.m., the first 100 minutes are free charges for over 100 minutes are $0.05 per minute. to 6:00 p.m., the first 75 minutes are free charges for over 75 minutes are $0.10 per minute.ī. Charges for over 50 minutes are $.20 per minute.Ī. Regular service: $10.00 plus 50 minutes are free. Its rates vary, depending on the type of service. The company offers two types of service: regular and premium. Write a program that calculates and prints the bill for a cell phone company.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |