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

  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?

  Calculate shortest path-djkstra-s shortest path algorithm

With indicated link costs, use Djkstra's shortest path algorithm to calculate shortest path from E to all network nodes. Illustrate how algorithm works by computing table.

  Sketch flowchart for logic of program to enter three values

Sketch a flowchart or write psuedocode to represent logic of a program that alllows the user to enter three values .

  Finding median by black-box worst-case linear-time algorithm

Given a black-box worst-case linear-time algorithm for ?nding median, create algorithm solving the selection problem for an arbitrary order statistic.

  Random walk simulation

A two dimensional array should be used to represent number of times the bug reached each tile on the floor. All cells of this array should be initialized to zero.

  Create an idef1x entity relationships diagram

The Metropolitan Housing Agency is a non profit corporation that advocates the development and improvement of low income housing.

  Design a control unit for simple hand held video game

Create a control unit for a simple hand held video game in which a character on the display catches objects. Only demonstrate the transition diagram

  Different network connections

Use your laptop at public store to check your email and discuss all the different network connections involved in this operation.

  Professional codes of ethics

Select one of the Professional Codes of Ethics associated with IT. If you were to complete a assignment related to securing the connectivity in your firm and its business partners.

  Question about database structure

Determine when a typical database is created the structure is constructed before the data is actually loaded into the database. What problems exist when someone wishes to add or delete from the existing structure?

  Generalize 2-3 algorithms for insert and delete

Generalize the 2-3 algorithms for INSERT and DELETE to K-J trees, where non-leaf vertices have between K and J children for fixed integers K >=2, and J>= 2K-1.

  Reverse path flooding

Suppose we have a network of nodes connected via point to point links, and source S sends a message that will be broadcast to all nodes using Reverse Path Flooding.

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