CS115 Lecture 1: CS 115 Full Exam Notes
![CS115 Full Course Notes](https://new-docs-thumbs.oneclass.com/doc_thumbnails/list_view/2334469-class-notes-ca-u-of-waterloo-cs-115-lecture7.jpg)
13
CS115 Full Course Notes
Verified Note
13 documents
Document Summary
Imperative : frequent changes to data : machine language. Functional : new values are computed not transformation of old ones. Arguments are substituted into the expression in place of parameters. Built-in functions (quotient 10 2) quotient (remainder 11 2) remainder. Be able to write common scheme expression errors: syntax :the way we are allowed to express ideas spelling, grammer, etc . Syntax error occurs when an expression cannot be interpreted using syntax rules (+ - 3: sematics :meaning of what we say. Changing the name of parameters does not change what the function does: different parameter names, same behaviour: Applied to scheme: (define ( f a) (* a 2 )) (define ( f b) (* b 2 ): the same parameter name can be used for different functions: B ( a ) = x2 + 1. Applied to scheme: (define (a x) (/ x 2)) (define (b x) (* x 2))