CISC 110 Lecture Notes - Lecture 4: Mack Horton, Structured Document
Document Summary
The set of rules that defines the combinations of symbols that are considered to be a correctly structured document or fragment in that language: comments. Allow people to read your code, understand your code, and maintain and change your code. Not every line needs commenting but sections do! At the top of your program you should have a header: (cid:862)(cid:863) This program draws a picture of a [ (cid:272)at a(cid:374)d it is a reall(cid:455) ugl(cid:455) (cid:272)at (cid:271)ut it is the (cid:271)est that i (cid:272)a(cid:374) do. ] Allows other parties to access and modify the code. What is the difference between a syntax error and a logic error: syntax errors. I ha(cid:448)e s(cid:272)re(cid:449)ed up i(cid:374) (cid:373)(cid:455) s(cid:455)(cid:374)ta(cid:454), i ha(cid:448)e(cid:374)(cid:859)t for(cid:373)atted (cid:373)(cid:455) progra(cid:373) (cid:272)orre(cid:272)tl(cid:455: logic error. I did not do what i expected to do. I. e. , i wanted to draw a line from 0, 0 to 100, 100, but instead i got confused and drew a line from 0, 0 to 10, 100.