Answer:

Sequence       Two-way Decision       Loop

Example Program

You wish to find out if "premium" gasoline improves your car's miles per gallon. You drive your car on a tank of regular gas, and then on a tank of premium gas and compare the miles per gallon for each tank. You want a computer program that will do the calculations.

(Of course you would have to do the experiment many times to be sure of your results. For simplicity, let us do the experiment just once.)

Assume that the tank starts out full of regular gas. To calculate the miles per gallon rates you collect data from your car:

Two trips in a car

You Gather this data:

  1. The odometer reading at the start (the tank is full of regular gas).
  2. The second odometer reading (after the first tank of gas is nearly empty).
  3. The gallons of gas needed to fill the tank (with premium gas).
  4. The third odometer reading (after the second tank is nearly empty).
  5. The gallons of gas used to fill the tank again (with any kind of gas).

Now all you need is a plan for the computer program. Here is a list of tasks that the program needs to perform. The tasks are not in order!

Computation Tasks:

QUESTION 3:

Arrange the tasks into a sensible order. (There are several correct answers.)

  1. First Task:
  2. Second Task:
  3. Third Task:
  4. Forth Task:
  5. Fifth Task: