Kathleen M. Huhner
EXAMPLE 1: Compute the average of three numbers.
(figure available in print form)
(figure available in print form)
The programmer chooses X, Y Z three letters (X,Y,&Z) to represent the numbers to be averaged.
(figure available in print form)
The computing step uses the standard formula for finding an average, the programmer electing to call the answer “A.”
(figure available in print form)
(figure available in print form)
EXAMPLE 2: Trace the following flowchart for the data values listed.
(figure available in print form)
(See actual trace on following page)
1. Trace: Input 8 for X and 2 for Y
(figure available in print form)
2.Trace: Input 10 for X and -5 for Y
(figure available in print form)