Question: There are three basic logic patterns that are used to create programs (Sequence, Selection, and Repetition). In the following statements, tell which logic pattern is

  1. There are three basic logic patterns that are used to create programs (Sequence, Selection, and Repetition). In the following statements, tell which logic pattern is best represented:

  1. Get the sum of the integers from 1 to 100
  2. If the temperature is too low, reset the thermostat
  3. Calculate the equation X = A+B-C
  4. Given a test grade, determine what letter grade it should be
  5. Read in an entire list of numbers and accumulate the total value.
  6. Determine if a number is negative or not

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!