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.