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.

Reference no: EM1336475

Questions Cloud

Question about resource allocation : Question about Resource Allocation - prepare two documents that thoroughly discuss the following components
Explain southern comfort : Explain Southern Comfort and Should it be distributed more or less intensely than other liquors
Managing an international business : What are the key major staffing models used in managing an international business
Hrm and a nursing home : How would HRM in a health care organization actually "operate" some of these HRM duties?
Plan a flowchart of the decision structure : A telephone company 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.
Explain the solution to consumer behavior : Explain The solution to Consumer Behavior and Select a purchase you have made recently and describe in detail how each of the 4Ps
Make a client/property database using microsoft access : The file New Database window opens, then type the word Client as the name for this file where cursor is blinking, then click the create bottom.
Note down a command, assuming your home directory : What will the permission section of an ls -l listing for filex look like after setting the following permissions.
Explain market penetration analysis : Explain Market penetration analysis and What are the steps in creating a market penetration analysis

Reviews

Write a Review

Computer Engineering Questions & Answers

  Make an assignment to read rfc

Make an assignment to read RFC

  A variety of both technical and business skill sets

An effective project manager wants a variety of both technical and business skill sets. recognize the nontechnical skills that have been associated with superior project management.

  Explain how vb .net uses a database

express how VB .NET uses a database. Briefly summarize the components of a database and the characteristics of a DBMS. Include a discussion of ADO .NET and its capabilities.

  Listing all the visual basic looping

Listing all the visual basic looping and decision constructs that you think you would need to write a program that sorts the grades for you. DO NOT write the program, simply list the constructs and justify the decision for choosing them.

  Define the limitations of vb-script

OOP is not about programming as much as it is about thinking in a specific way. When you think of an object, you should see it as a set of properties and processes. Properties are the data, and methods are what you do to the data.

  Modifying the label properties

Perform some of the changes, the WebTime example to consists of drop-down lists that enable the user to alter such Label properties as the BackColor, ForeColor and Font-Size.

  An instance of a situation where a trigger would appropriate

What are triggers used for, and why are they important in database systems? give an example of a situation where a trigger would be appropriate. What would the implementation of this trigger look like.

  Define a byte addressable main memory of 2^16 bytes

Given, a byte addressable main memory of 2^16 bytes and block size of 8 bytes, using direct mapped cache consisting of 32 lines.

  Show the command line and accept one interger as input

Call a function the outputs seven sequential intergers, with input interger as the middle item on the command line below the input prompt.

  Supply supporting evidence for the decision

Now that you have a normal plan and have identified the information that you need for this program, you feel you are ready to start development. You told your uncle that you would need to purchase software for this program. Since your uncle is in ..

  Quantifying the software development

This organization is interested in quantifying its software development. Write down a report proposing suitalbe metrics and propose how these can be collected.

  Generate and show all power-of-two numbers

show an arbitrary user-input integer.generate and display all power-of-two numbers in the range +128 to -128.

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