Section 4.2 Self Check Programming Section 4.3 Programming Section 4.5 Self Check Programming Section 4.6 Programming Section 4.8 Self Check Programming Chapter 4 Programming projects For this problem you should write a simple program and not use procedures. For drawing shapes you can use '*', for example you may draw a circle as: *** * * * * * * * * * * *** ‐ The following program contains (at least) seven errors. Please name five of them. You should mention the line number and give a short explanation of the error. Try to find the errors by only looking at the program text and run Turbo Pascal only if really necessary. There may be a similar exercise in the midterm exam, and there you cannot use a computer. (1) PROGRAM fullOfErrors(input, output); (2) USES WinCrt; (3) VAR (4) b: boolean, (5) i: int; (6) BEGIN (7) readln(1); (8) b := (i < 1); (9) IF b THEN (10) write(5); (11) ELSE BEGIN (12) j := write(6); (13) END
© Copyright 2025 Paperzz