Preview

The Usefulness of Selection and Repetition Control Structures

Good Essays
Open Document
Open Document
772 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
The Usefulness of Selection and Repetition Control Structures
Running head: THE USEFULNESS OF SELECTION AND REPETITION CONTROL STRUCTURES

The Usefulness of Selection
Repetition Control Structures
John C. Wells, Jr.
University of Phoenix

Abstract
In The Usefulness of Selection and Repetition Control Structures article you will find that there are various uses for the selection and repetition control structures. The four selection control structures are: Simple selection, Simple Selection with null false branch, Combined Selection, and Nested Selection. The repetition structures also called “Loops” are composed of three types of loops: Leading decision loop, Trailing decision loop, and the Counted Repetition Loop.

The Usefulness of Selection
And Repetition Control Structures
Control Structures are divided into three categories: Sequence, Selection and Repetition. These three control structures when properly applied are very advantageous to both the programmer and the end-user. Each of these control structures are encompassed in the flow chart which is an excellent visual representation for whatever a program is doing within the computer.
Selection Control Structures are control structure that offer a question within the program and require the user to answer a question to proceed. They provide a flowchart that has not only been used for programming but also for troubleshooting equipment casualties. Throughout the flowchart there will be branch points and in order to proceed, the answer must be satisfied. There are four types of Selection Control Structures: Simple selection, Simple Selection with null false branch, Combined Selection, and Nested Selection.
Simple Selection is basically an “If, Then” sentence. If these results satisfy the question asked, then do this. This type of selection control structure allows the user to make a single decision to continue through the flowchart. They have been used in many diagnostic test used by the military. Ex: If 4001 is your fault code, then



References: Venit, S., Drake, E.(2007). Extended Prelude to Programming Concepts and Design.

You May Also Find These Documents Helpful

  • Good Essays

    2) (2 point) Which of the four common control objectives is most enhanced by this control feature in this situation?…

    • 711 Words
    • 3 Pages
    Good Essays
  • Good Essays

    Nt1310 Unit 1 Quiz

    • 1980 Words
    • 8 Pages

    6 . For an unconditional approach to a particular part of a complex PL/SQL block, which of the following control structures can be used?…

    • 1980 Words
    • 8 Pages
    Good Essays
  • Satisfactory Essays

    unit 7 assignment 1

    • 431 Words
    • 2 Pages

    5. What three actions do count-controlled loops typically perform using the counter variable? Initialization: Before the loop begins, the counter variable is initialized to a starting value. Test : The loop tests the counter variable by comparing it to a maximum value. If the counter variable is less than or equal to the maximum, the loop iterates. If the counter is greater than the maximum value, the program exits the loop. Increment : To increment a variable means to increase its value. During each iteration, the loop increments the counter variable by adding a predetermined amount to it…

    • 431 Words
    • 2 Pages
    Satisfactory Essays
  • Powerful Essays

    Mat 540 Week 4 Paper

    • 1775 Words
    • 8 Pages

    A worm is moving toward an apple. Each time it moves, the worm cuts the distance between itself and the apple by its own body length until the worm is close enough to enter the apple. The worm can enter the apple when it is within a body length of the apple.…

    • 1775 Words
    • 8 Pages
    Powerful Essays
  • Good Essays

    mgmt final

    • 1301 Words
    • 6 Pages

    6. (TCO 10) What are the different levels of control? What are the relationships between the different levels?…

    • 1301 Words
    • 6 Pages
    Good Essays
  • Good Essays

    | |highlighted. This should be typed. Word and Powerpoint are both programs that will allow you to work with flow charts that can be constructed as a tree. If |…

    • 629 Words
    • 3 Pages
    Good Essays
  • Satisfactory Essays

    Prg 211

    • 393 Words
    • 2 Pages

    To determine which types of selection structures, each groups or blocks of statements must be tested to determine which of these statements can be executed. 1) A single alternative structure contains only a single block of statements. If the test condition is met, the statements are executed. The statements are skipped if the test condition is not met. 2) There are two blocks of statements in a dual alternative structure. If the first block is executed after the test condition is met, then the program skips over the second block. If the first block of statements failed the test condition, it will be skipped and the second block is executed. 3) Containing more than two blocks of…

    • 393 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    There are multiple ways an organization uses control mechanisms. A company could develop a control system at an organization level, business unit level and individual level. Control mechanisms are used to monitor progress and evaluate performance.…

    • 328 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Count-controlled repetition is often called definite repetition because the number of repetitions is known before the loop begins executing. When we do not know in advance the number of times we want to execute a statement, we cannot use count-controlled repetition. In such an instance, we would use sentinel-controlled repetition.…

    • 391 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    In situations where the selection structure has many paths from which to choose, it is often simpler and clearer to code the selection structure using the ____ statement.…

    • 595 Words
    • 3 Pages
    Satisfactory Essays
  • Good Essays

    10. This is the structure of a feedback system that provides input to the control center.…

    • 287 Words
    • 2 Pages
    Good Essays
  • Satisfactory Essays

    Quiz 2

    • 861 Words
    • 4 Pages

    | D. managers generate a wide array of decision options and select the one that meets all decision criteria…

    • 861 Words
    • 4 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Resourcing Talent

    • 1451 Words
    • 6 Pages

    * A review of three different selection methods that can be used, and when it is appropriate to use them.…

    • 1451 Words
    • 6 Pages
    Satisfactory Essays
  • Good Essays

    6. Conditional expressions used in a While statement have the same components as conditional expression used in what other control construct?…

    • 610 Words
    • 3 Pages
    Good Essays
  • Satisfactory Essays

    In this file MGT 330 Week 5 Discussion Questions 2 there is a solution on this problem: "What are the different types of control systems? What are some advantages and disadvantages of the various control mechanisms? How does your organization use the steps of the control process?"…

    • 465 Words
    • 3 Pages
    Satisfactory Essays