Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

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 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 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

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Sustainability Performance And Reporting

Authors: Irene M. Herremans

1st Edition

1951527208, 9781951527204

More Books

Students also viewed these Accounting questions