### Plan a flowchart of the decision structure

Assignment Help Computer Engineering
##### Reference no: EM1336475

A telephone company service plan charges 25 cents for each call made. In addition, it charges 5 cents a minute for all calls made to a phone number that has a service plan with the company. Or, if the call is to a phone that does not have a service plan with the company, it charges 15 cents a minute for calls that last less than 20 minutes or ten cents a minute for calls that last 20 minutes or longer. The phone company has a file with one record for every call made in one day. (In other words, a single customer might have many such records on file.) Fields for each call include customer area code (three digits), customer phone number (seven digits), called area code (three digits), called number (seven digits), a character to indicate whether the other phone number has a service plan with the company (y) or not (n), and call time in minutes (never more than 4 digits). The company wants a report listing one detail line for each call, including the customer area code and number, the called area code and number, the minutes, and the total charge.

a) Create a decision table to use while planning the logic for this program.
b) Draw the flowchart for the decision structure required in this program.
c) Identify appropriate test values for the decision structure and submit the results of a desk check of the program.

Step 1 Create a decision table to use while planning the logic for this program. Specifically, you should:

1.list the conditions for the decision;
2.generate all T/F combinations for the conditions;
3.list the actions to be taken;
4.analyze each T/F combination and determine which, if any, of the actions should be taken.

Step 2 Draw a flowchart of the decision structure and statements used to calculate the total phone charges for this program.

Step 3 Use the conditions in the decision table to identify test values that will test each range of values defined in the decision structure. For example, a condition x > 2 indicates you need to test a value of x less than 2, x equals 2, and a value of x greater than 2.

Desk check each test value using your decision structure and statements used to calculate the total phone charges. Be sure to show your steps in the Word document.

#### Assume the network is a packet-switched datagram network

discuss sending a file of F bytes over a path of Q links. Each link transmits at R bps. The network is lightly loaded so that there are no queuing delays. Propagation delay

#### Design a unix shell script that searches for a text file

make a Unix shell script that searches for a text file with most occurrences of a given keyword. For instance, if I would like to search for a script with most usages of if

#### Write down the largest and the smallest numbers to screen

Write down a Java program that will search a text file of strings representing numbers of type int and will write the largest and the smallest numbers to the screen.

#### How to define a class named document

express a class named Document that contains an instance variable of type String named text that stores any textual content for the document. Create a method named toString

#### Expalin the file system that will be installed

define the file system that will be installed in the server of your local hospital to support remote access of information by the hospital's doctors while they are using the

#### Define a way to insert a row

How do I insert a row in multiple tables on different sheets in the similar workbook? I have 12 sheets, one for every month, and the sheets are exactly the same. Is there a w

#### Define what is internet storage

You would like to save the digital pictures you took on vacation onto your hard drive, but it would take up too much storage space. You have heard you can enhance your compu

#### Drawbacks of supporting links to files that cross mount

explain the advantages and disadvantages of supporting links to files that cross mount points (that is, the file link refers to a file that is stored in a different volume).