The doSomething function
The doSomething function for this program is shown in Listing 2.
The doSomething function executes a sequence structure consisting of five action elements. Then the function terminates.
Each of the first two action elements in the sequence displays a message on the screen similar to the previous program.
These two messages constitute the first two lines of text in the output shown under program output earlier.