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

  Implement an open hash table

In this programming assignment you will implement an open hash table and compare the performance of four hash functions using various prime table sizes.

  Use a search tree to find the solution

Explain how will use a search tree to find the solution.

  How to access virtualised applications through unicore

How to access virtualised applications through UNICORE

  Recursive tree algorithms

Write a recursive function to determine if a binary tree is a binary search tree.

  Determine the mean salary as well as the number of salaries

Determine the mean salary as well as the number of salaries.

  Currency conversion development

Currency Conversion Development

  Cloud computing assignment

WSDL service that receives a request for a stock market quote and returns the quote

  Design a gui and implement tic tac toe game in java

Design a GUI and implement Tic Tac Toe game in java

  Recursive implementation of euclids algorithm

Write a recursive implementation of Euclid's algorithm for finding the greatest common divisor (GCD) of two integers

  Data structures for a single algorithm

Data structures for a single algorithm

  Write the selection sort algorithm

Write the selection sort algorithm

  Design of sample and hold amplifiers for 100 msps by using n

The report is divided into four main parts. The introduction about sample, hold amplifier and design, bootstrap switch design followed by simulation results.

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