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 Systems: Design, Implementation, & Management
12th Edition
ISBN:9781305627482
Author:Carlos Coronel, Steven Morris
Publisher:Carlos Coronel, Steven Morris
Chapter8: Advanced Sql
Section: Chapter Questions
Problem 69C: Update the DETAILRENTAL table to set the values in DETAIL_RETURNDATE to include a time component....
icon
Related questions
Question

1. draw the flow chart

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 each 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
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.c. 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.
Service rate
| 2 cents per min (basic rate)
Destination number
4055547788
5204341234
|6201234567
1.25 * basic rate
1.75 * basic rate
Take a pause and draw the flow chart of the overall program.
Transcribed Image Text: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 each 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 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.c. 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. Service rate | 2 cents per min (basic rate) Destination number 4055547788 5204341234 |6201234567 1.25 * basic rate 1.75 * basic rate Take a pause and draw the flow chart of 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
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781305627482
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Np Ms Office 365/Excel 2016 I Ntermed
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage
A Guide to SQL
A Guide to SQL
Computer Science
ISBN:
9781111527273
Author:
Philip J. Pratt
Publisher:
Course Technology Ptr