Home /
Expert Answers /
Computer Science /
2-basic-control-structures-there-are-three-types-of-basic-structures-that-control-flow-in-program-pa211
(Solved): 2. Basic Control Structures. There are three types of basic structures that control flow in program ...
2. Basic Control Structures. There are three types of basic structures that control flow in programming. They are a. Sequential control statements b. Selective control statements c. Iterative or Repetitive control statements Examining Figure 1, which shows examples of the three major flow diagrams, which one would be for a. Input (or output) of three variables, one at a time b. Is the variable x>4 ? c. Is the variable x=4 ? If true continue, if false, exit d. Identify the sequential, selective and iterative control statements in the following flow chart (Figure 2) that calculates the sum of the first 50 natural numbers. Figure 2. Flow Chart to Calculate the Sum of the First 50 Natural Numbers.