Name: | __________________ |
Student ID: | __________________ |
MODULE BuggyReadVector; (* user inputs values to initialize a vector *) FROM SWholeIO IMPORT ReadCard; VAR myVector : ARRAY [1 .. 11] OF CARDINAL; count, counter : CARDINAL; BEGIN FOR count := 1 TO 10 DO counter := count; ReadCard (count); SkipLine; myVector [counter] := count; END; myVector [counter + 1] := 11; END BuggyReadVector.
9472 3930 4876 239 1029 12 7349 1920 0 2382 3390 1528 3 5867 9999 8821 2002 77 1103 902 ....