Explore BrainMass
Share

Create a decision table, flowchart and find test values

This content was STOLEN from BrainMass.com - View the original, and get the already-completed solution here!

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.

© BrainMass Inc. brainmass.com October 25, 2018, 1:03 am ad1c9bdddf
https://brainmass.com/computer-science/files/create-decision-table-flowchart-find-test-values-250730

Solution Preview

Please see the attachment.

Step 1: Decision Table
Combinations
Conditions Values 1 2 3 4
Have a service plan T, F T T F F
Call lasts less than 20 minutes T, ...

Solution Summary

The expert creates a decision table, flowchart and finds a test value for a telephone company,

$2.19
See Also This Related BrainMass Solution

Critical Path of the Construction Project and Data Collection

Complete Exercises 13.1, 13.3, and 13.11 on pages 336 & 341 in Quantitative Methods in Health Care Management.

Use this template to record and submit your answers for grading: Excel template for Exercises 13.1, 13.3, and 13.11

Use these Excel automated templates for your calculations (do not submit these files, but transfer information from them to the Excel file you are submitting): CPM Deterministic for 13.3 and PERT Probabilistic for 13.11.

Any existing numbers in green cells in the automated tables are for examples, and show where you should enter the data. You must delete or overwrite these numbers to perform the calculations. The yellow cells of the automated templates are protected to prevent users from accidentally deleting or overwriting the formulas. There is no need to unprotect the templates.

View Full Posting Details