4. Create and run a program that will compute the total cost charges of a telephone call rendered from a particular network using the given table. The user will input call destination code CDA (1 to 5), time code TC (1 = off-peak, 2 = peak), and the duration of call. Save your program as Exp5_ex4.cpp and write the code below. Sample Process: Call Destination Code: 1 Time Code: 2 Duration: 4 Computation: 3 * 4 = 12 pesos harge Time Code Sample Output (1 )Off- peak Rate (2) Peak Rate CDA Description Good day! Same 1 Network Other P8 P3 Enter Call Destination Code: P8 P4 Network Landline National Enter Time Code: Enter Call Duration (minutes): P8 P4 4 P11 P7 Direct The total cost charge is , pesos. International P20 P20 Direct

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
4. Create and run a program that will compute the total cost charges of a telephone call rendered from
a particular network using the given table. The user will input call destination code CDA (1 to 5), time
code TC (1 = off-peak, 2 = peak), and the duration of call. Save your program as Exp5_ex4.cpp and
write the code below.
Sample Process: Call Destination Code: 1
Time Code: 2 Duration: 4
Computation: 3 * 4 = 12 pesos harge
Time Code
(2 ) Peak
(1 )Off-
peak Rate
Rate
Sample Output
CDA Description
Good day!
Same
P8
P3
1
Network
Other
Enter Call Destination Code: ,
2
Network
3
P8
P4
Enter Time Code:
P4
Enter Call Duration (minutes):
Landline
National
P8
P11
P7
4
Direct
International
The total cost charge is
pesos.
P20
P20
Direct
Transcribed Image Text:4. Create and run a program that will compute the total cost charges of a telephone call rendered from a particular network using the given table. The user will input call destination code CDA (1 to 5), time code TC (1 = off-peak, 2 = peak), and the duration of call. Save your program as Exp5_ex4.cpp and write the code below. Sample Process: Call Destination Code: 1 Time Code: 2 Duration: 4 Computation: 3 * 4 = 12 pesos harge Time Code (2 ) Peak (1 )Off- peak Rate Rate Sample Output CDA Description Good day! Same P8 P3 1 Network Other Enter Call Destination Code: , 2 Network 3 P8 P4 Enter Time Code: P4 Enter Call Duration (minutes): Landline National P8 P11 P7 4 Direct International The total cost charge is pesos. P20 P20 Direct
Expert Solution
steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY