Note that there are two decisions in the program. In Procedure-1 computer has to test whether the last record has been processed, and in PROCEDURE-2 it has to test if TOTAL-SALES exceeds $50,000, Observe also-that there is a loop: control is continually transferred frome Procedure-2 back to PRoCEDURE-1 to repeat the program segment until the last record has been read and processed.