Creating the flowchart for the decision structure

Assignment Help Data Structure & Algorithms
Reference no: EM1380568

A telephone corporation service plan charges twenty-five cents for each call made. In addition, it charges five cents a minute for all calls made to a phone number that has a service plan with the corporation. 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.

Reference no: EM1380568

Questions Cloud

Describe why you think that would be the best bet : You are an investor in small businesses as well as you have three business plans on your desk. Select one of the potential business owners listed. Describe why you think that would be the best bet for an investment.
Your organization hypothetical has a large number : Your organization hypothetical has a large number of individuals at the supervisor as well as management levels who will give up work within the next seven years.
Choice a commercial or advertisement with which you familiar : Choice a commercial or advertisement with which you are familiar. Why is it operative or persuasive? Does it have to be persuasive to be effective?
Illustrate what is nominal percent return : Illustrate what is nominal percent return. Explain how would inflation alter those returns also illustrate what would real rate of return be.
Creating the flowchart for the decision structure : A telephone corporation service plan charges twenty-five cents for each call made. In addition, it charges five cents a minute for all calls made to a phone number that has a service plan with the corporation.
Explain why do you think facilities have become so important : Explain why do you think facilities have become so important in sports, at pro, college also even general public level.
Who do bad things be termed leaders : Based on the subsequent statement below can those who do bad things be termed leaders as well as what can we learn from such leaders?
S jones entitled to one-half of value of two buildings : Explain however, two had no agreement regarding distribution of barn also Deere unit. Jones sues Smith, claiming he is entitled to one-half of value of two buildings. Is Jones entitled to one-half of value of two buildings? Explain.
Illustrate what agreement should address : Design a proposed contract for an independent contractor's position. Focus on illustrate what agreement should address. Do not worry about legal language as agreement would be reviewed by a labour attorney prior to its adoption for use.

Reviews

Write a Review

Data Structure & Algorithms Questions & Answers

  Explain compression algorithms are often used in forensics

"Compression algorithms are often used in forensics. Suppose you are involved in a case and have been asked by the lawyer to explain, in general terms.

  Algorithm to read arbitrary number of data records

Write the algorithm to read arbitrary number of data records, each comprising name, age, and code.

  Find capacity of a particular airplane type

Consider the entities and their attributes. You should 1st determine what entities want to track. Next determine what attributes are required for each entity, and what relations exist between these entities.

  Implement a queue as a circular array

Implement a queue as a circular array as follows: Use two index variables head and tail that contain the index of the next element to be removed and the next element to be added.

  Sorting arrays of name in descending order

Then sort arrays so that records are in descending order by purchase amount for month. Output lists the names of the top five customers.

  Question about shortest prefixes

A prefix of a string is a substring string at the beginning of the given string. The prefixes of "carbon" are: c, ca, car, carb, carbo and carbon.

  Question about damaged database

Suppose if you were one of the users of a damaged database, discuss how would you be affected by such a failure and what measures could you take to prevent it?

  Determining hash value of modified file

Determine hash value of modified file look like, as compared with original hash value?

  Create time algorithm-minimum time required to finish task

Create the O(|V | + | E |) time algorithm which, given times ti and the dependencies, determines minimum time required to complete all the tasks.

  Design time randomized monte carlo algorithm

You have to design an O(n) time randomized Monte Carlo algorithm which computes an (1 + o)- approximate ham-sandwich cut with probability 1 - n-c for any given constant c > 0.

  Finding equation has no solutions mod m

Let the equation ax = b mod m, where x is unknown and a, b and m are given. Illustrate that this equation has either no solutions mod m, or d solutions mod m.

  Algorithm to divide sixteen digit value by six digit integer

Divide 16 digit value N by six digit integer D obtaining quotient Q and remainder (or sign of the remainder) R by division algorithms.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd