{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

W2009 Midterm 2

W2009 Midterm 2 - UWaterloo CS116 Midterm_2 2009 Winter...

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

View Full Document Right Arrow Icon
UWaterloo CS116 Midterm_2 2009 Winter 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: 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 招收 CS 大三課程以下学生有意者(具體請見詳表) + [email protected] CELL: 519-729-1582 已经教过 100+ 的学生 经验丰富,童叟无欺,价格合理,内容充实,简单易懂 具體詳細表 CS115 作業答疑,考試複習,有過去考試的卷子和過去所有作業準確答案,也有自出的題,價格面儀
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
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}