CPSC 110 Lecture Notes - Lecture 2: Guatemala
ferrari12 and 39375 others unlocked
23
CPSC 110 Full Course Notes
Verified Note
23 documents
Document Summary
Cpsc 110 - lecture #2 - beginning student language. Nb: you can have as many expressions as you want. Example: (cid:894) + (cid:1008) (cid:1006) (cid:895) a(cid:374)s(cid:449)er (cid:449)ould (cid:271)e (cid:1010). Or (cid:894) + (cid:1008) (cid:1007) (cid:1006) (cid:1005) (cid:1009) (cid:1012)(cid:1007)(cid:1011) (cid:895) a(cid:374)s(cid:449)er (cid:449)ould (cid:271)e (cid:1012)(cid:1009)(cid:1006). Eg. (cid:862)co(cid:373)puter (cid:272)ie(cid:374)(cid:272)e(cid:863) is (cid:272)o(cid:374)sidered a stri(cid:374)g. Gives the number of characters in the string (including the space). Eg: (string-le(cid:374)gth (cid:862)co(cid:373)puter (cid:272)ie(cid:374)(cid:272)e(cid:863)(cid:895) (cid:449)ill produ(cid:272)e the output 16. Nb: a worksheet was done in the lecture. Below are questions extremely similar to those on the worksheet but they are not the same. Worksheet questions (ones extremely similar to the actual worksheet: the guatemalan flag is this: Write an expression to produce the background (without the symbol in the middle) of the flag. Nb: for proportions, you can assume that the widths of the sections are equal. You (cid:272)a(cid:374) use (cid:862)(cid:271)lue(cid:863) for the (cid:272)olour though it (cid:449)ill (cid:374)ot (cid:271)e the sa(cid:373)e shade.