CS115S2009M2

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

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

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

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

View Full Document
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
This is the end of the preview. Sign up to access the rest of the document.

## This note was uploaded on 10/24/2009 for the course CS 115 taught by Professor Graham during the Fall '08 term at Waterloo.

### 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
Ask a homework question - tutors are online