Suppose that the cellular phone bill of a client is computed according to the following rates table for calls: First 5 min Next 10 min Next 15 min Excess over 30 min P100.00 (minimum charge) P8.00 per min P6.00 per min P1.50 per min Text messages cost P1.00 per send. Write a program that computes the phone bill based on the number of minutes used up and the number of text messages sent that are to be read from the keyboard. The program should be able to compute the bill for a maximum of 10 clients. The user specifies the number of clients to be billed at the start of the program.

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter8: Arrays And Strings
Section: Chapter Questions
Problem 20PE
icon
Related questions
Topic Video
Question
Create a C++ Program
PROBLEM 6
Į Suppose that the cellular phone bill of a client is computed according to the following rates
I table for calls:
| First 5 min
i Next 10 min
Next 15 min
P100.00 (minimum charge)
P8.00 per min
P6.00 per min
P1.50 per min
Excess over 30 min
Text messages cost P1.00 per send. Write a program that computes the phone bill based on
the number of minutes used up and the number of text messages sent that are to be read
from the keyboard. The program should be able to compute the bill for a maximum of 10
clients. The user specifies the number of clients to be billed at the start of the program.
Transcribed Image Text:PROBLEM 6 Į Suppose that the cellular phone bill of a client is computed according to the following rates I table for calls: | First 5 min i Next 10 min Next 15 min P100.00 (minimum charge) P8.00 per min P6.00 per min P1.50 per min Excess over 30 min Text messages cost P1.00 per send. Write a program that computes the phone bill based on the number of minutes used up and the number of text messages sent that are to be read from the keyboard. The program should be able to compute the bill for a maximum of 10 clients. The user specifies the number of clients to be billed at the start of the program.
Expert Solution
steps

Step by step

Solved in 4 steps with 2 images

Blurred answer
Knowledge Booster
Instruction Format
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage