Answer:

First Task:  LET MILES = 200

Second Task: LET GALLONS = 10

Third Task:  PRINT MILES / GALLONS, "Miles per Gallon"

Order of Tasks

sequence of tasks

A task is a step toward completing a program. Each task might be done with several (or very many) statements.

Often a task can not be started until one or more other tasks have been performed. For example, in the above answer, the first two tasks must be done before the third task so that the calculation MILES / GALLONS can be performed. In this program the third task must come last.

Sometimes two (or more) tasks can be done in either order. For example, the first two tasks could be switched and the program would still be correct:

First Task: LET GALLONS = 10

Second Task:  LET MILES = 200

Third Task:  PRINT MILES / GALLONS, "Miles per Gallon"

It is often hard to decide on the correct order of tasks. Executives of corporations decide on the tasks that make up a project and the order in which they must be achieved.

QUESTION 5:

Let us see if you are executive material. Your project is to get up in the morning. Arrange the following tasks into a reasonable order: