PRB - Sequencing (Lesson)

Sequencing

First Impressions

What is the difference in how items are sequenced? In Alice, you have seen the very first portion in the firstMethod in Alice.  

Sequencing

STATEMENT

DEFINITION

do in order A programming statement that means to take each of the statements written within one at a time in the order that they are found.
do together

A programming statement that means to take all of the statements written within and execute them all at the same time.

Program Sequencing

Let's carefully look at the difference in execution of using these statements. Watch the video below to view what happens and examine the difference in coding for program sequencing.  

Note that it is very important to think about how you wish statements in a program to be executed, concurrently or one after another, do together or do in order respectively. Order makes a difference in execution and whether you want action to happen together or separate does as well. 

VIDEO CREATED BY GAVS.