A company XYZ provides regular (wired) telephone service. Its service area is shown in the figure below. Each cell represents a region that is covered by a central office. The number in cach cell represents the area code of the cell. 600 655 605 650 500 610 550 510 645 405 615 540 520 640 530 620 635 625 630 Fig. 1 The service coverage of company XYz In this project, you will write a program that simulates telephone service provided by a switch at the central office of area code 405. The switch receives a call from cell 405 and generates billing information based on how long the call has lasted, namely, call connection time. Your program will generate a call by prompting user input for destination phone number. Once getting a destination phone number, a call connection time must be generated by using a random number generator. Based on the call connection time, service fee will be calculated in the following way: If a call is requested to a destination phone number with the same area code of 405, which is called a local call, the service rate is 2 cents per min. Let us call this service rate the basic rate. If a call request is long- distance, i.e. to other area code, the service rate depends on the distance between the 405 cell and the destination cell. If these two cells are adjacent, the service rate is 1.25 times the basic rate. If the two cells are one-cell apart, the service rate is 1.75 times the basic rate. Table 1 shows an example of service rates according to the destination number of a call request. Table 1 Example of service rate based on destination number. Destination number 4055547788 | 5204341234 | 6201234567 |Service rate |2 cents per min (basic rate) 1.25 * basic rate 1.75 * basic rate_ Take a pause and draw the flow chart of the overall program.

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

1. draw the flow chart

**Project Overview: Simulating Telephone Service**

**Figure 1: Service Coverage of Company XYZ**

A hexagonal grid illustrates the service area of Company XYZ, displaying various area codes within each cell. The central office represented by the area code 405 is highlighted, showing its connectivity to surrounding area codes: 600, 605, 610, 620, 625, 630, 635, 640, 645, 650, and 655.

**Project Objective**

In this project, you will develop a program that simulates the telephone service provided by a central office with area code 405. The system processes calls from cell 405 and generates billing based on call connection time.

**Program Details**

1. **User Interaction:** The program will request user input for a destination phone number.
   
2. **Call Connection Time:** It will generate a call connection time using a random number generator.

3. **Service Fee Calculation:** The service fee depends on the call connection time and the destination area code.
   - **Local Calls:** A call within the same area code (405) incurs a charge of 2 cents per minute, known as the basic rate.
   - **Long-Distance Calls:** 
     - If the destination cell is adjacent to 405, the service rate is 1.25 times the basic rate.
     - If the destination cell is one-cell apart, the rate is 1.75 times the basic rate.

**Table 1: Example of Service Rates Based on Destination Number**

| Destination Number | Service Rate                           |
|--------------------|-----------------------------------------|
| 4055547788         | 2 cents per min (basic rate)            |
| 5204341234         | 1.25 * basic rate                       |
| 6201234567         | 1.75 * basic rate                       |

**Next Step**

Pause here and create a flowchart for the overall program.
Transcribed Image Text:**Project Overview: Simulating Telephone Service** **Figure 1: Service Coverage of Company XYZ** A hexagonal grid illustrates the service area of Company XYZ, displaying various area codes within each cell. The central office represented by the area code 405 is highlighted, showing its connectivity to surrounding area codes: 600, 605, 610, 620, 625, 630, 635, 640, 645, 650, and 655. **Project Objective** In this project, you will develop a program that simulates the telephone service provided by a central office with area code 405. The system processes calls from cell 405 and generates billing based on call connection time. **Program Details** 1. **User Interaction:** The program will request user input for a destination phone number. 2. **Call Connection Time:** It will generate a call connection time using a random number generator. 3. **Service Fee Calculation:** The service fee depends on the call connection time and the destination area code. - **Local Calls:** A call within the same area code (405) incurs a charge of 2 cents per minute, known as the basic rate. - **Long-Distance Calls:** - If the destination cell is adjacent to 405, the service rate is 1.25 times the basic rate. - If the destination cell is one-cell apart, the rate is 1.75 times the basic rate. **Table 1: Example of Service Rates Based on Destination Number** | Destination Number | Service Rate | |--------------------|-----------------------------------------| | 4055547788 | 2 cents per min (basic rate) | | 5204341234 | 1.25 * basic rate | | 6201234567 | 1.75 * basic rate | **Next Step** Pause here and create a flowchart for the overall program.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 2 images

Blurred answer
Similar questions
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education