CS115S2009M2

CS115S2009M2 - CS115/116/135/136/2/3 private tutor TEL...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
CS115/116/135/136/2**/3** 招生,價格面議,經驗豐富,童叟無欺,請認准刁一勾牌 private tutor TEL: 519-729-1582 MSN: [email protected] 以下廣告欄招租。。哈哈 UWaterloo CS115 Midterm_2 2009 Spring 2009 Oda_Eagle Production CS115/116/125/134/135/136/241/240/341/343 Tutor [email protected] The following notes are relevant for all questions: We use the term “Scheme” as a short form for “Beginning Student Scheme with List Abbreviations” Unless we ask specifically for another part of the design recipe, the instructions “Create a Scheme function” means that you are to give the definition only. Helper functions may be used anywhere you feel it appropriate We use arithmetic functions as well as following built-in functions, described briefly here for your reference: max determines the largest of two or more numbers min determines the smallest of two or more numbers sqrt determines the positive square root of a number string-length determines the length of a string string-append combines two or more strings into a single string, in the order given check-expect determines if two values are exactly the same, and is to be used for tests when they are requested ( make-posn x y ) produces a posn structure with field value x and y (posn-x p ) and ( posn-y p ) produce the first and second fields of a posn p ( substring s p1 p2 ) produces a string containing the characters from a from postion p1 through p2 -1
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
CS115/116/135/136/2**/3** 招生,價格面議,經驗豐富,童叟無欺,請認准刁一勾牌 private tutor TEL: 519-729-1582 MSN: [email protected] 以下廣告欄招租。。哈哈 Question 1. [ 7 Marks ] Tracing Use the evaluation rules to perform a full trace the following Scheme program. You may need not all
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

Page1 / 8

CS115S2009M2 - CS115/116/135/136/2/3 private tutor TEL...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online