{\rtf1\ansi\deff1\adeflang1025
{\fonttbl{\f0\froman\fprq2\fcharset0 Times New Roman{\*\falt Thorndale};}{\f1\froman\fprq2\fcharset0 Times New Roman;}{\f2\fswiss\fprq2\fcharset0 Arial;}{\f3\froman\fprq2\fcharset0 Times New Roman;}{\f4\fmodern\fprq1\fcharset0 Courier New;}{\f5\froman\fprq0\fcharset0 Times New Roman;}{\f6\fnil\fprq2\fcharset0 HG Mincho Light J;}{\f7\fnil\fprq2\fcharset0 Arial Unicode MS;}}
{\colortbl;\red0\green0\blue0;\red128\green128\blue128;}
{\stylesheet{\s1\cf1{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\aspalpha\rtlch\af7\afs24\lang255\ltrch\dbch\af6\afs24\langfe255\loch\f1\fs20\lang1033\snext1 Default;}
{\s2\sa120\cf1{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\aspalpha\rtlch\af7\afs24\lang255\ltrch\dbch\af6\afs24\langfe255\loch\f1\fs20\lang1033\sbasedon1\snext2 Text body;}
{\s3\sb240\sa120\keepn\cf1{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\aspalpha\rtlch\af7\afs24\lang255\ltrch\dbch\af6\afs24\langfe255\loch\f2\fs28\lang1033\sbasedon1\snext2 Heading;}
{\s4\li360\ri0\fi-360\cf1{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\aspalpha\rtlch\af7\afs24\lang255\ltrch\dbch\af6\afs24\langfe255\loch\f1\fs20\lang1033\sbasedon1\snext4 List;}
{\s5\li720\ri0\fi-360\cf1{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\aspalpha\rtlch\af7\afs24\lang255\ltrch\dbch\af6\afs24\langfe255\loch\f1\fs20\lang1033\sbasedon1\snext5 List 2;}
{\s6\cf1{\*\tlswg8236}\tqc\tx4320{\*\tlswg8236}\tqr\tx8640{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\aspalpha\rtlch\af7\afs24\lang255\ltrch\dbch\af6\afs24\langfe255\loch\f1\fs20\lang1033\sbasedon1\snext6 Header;}
{\s7\cf1{\*\tlswg8236}\tqc\tx4320{\*\tlswg8236}\tqr\tx8640{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\aspalpha\rtlch\af7\afs24\lang255\ltrch\dbch\af6\afs24\langfe255\loch\f1\fs20\lang1033\sbasedon1\snext7 Footer;}
{\s8\sa120\cf1{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\aspalpha\rtlch\af7\afs24\lang255\ltrch\dbch\af6\afs24\langfe255\loch\f1\fs20\lang1033\sbasedon2\snext8 Table Contents;}
{\s9\sa120\cf1\qc{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\aspalpha\rtlch\af7\afs24\lang255\ltrch\dbch\af6\afs24\langfe255\loch\f1\fs20\lang1033\i\b\sbasedon8\snext9 Table Heading;}
{\s10\sb120\sa120\cf1{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\aspalpha\rtlch\af7\afs24\lang255\ltrch\dbch\af6\afs24\langfe255\loch\f1\fs20\lang1033\i\sbasedon1\snext10 Caption;}
{\s11\cf1{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\aspalpha\rtlch\af7\afs24\lang255\ltrch\dbch\af6\afs24\langfe255\loch\f1\fs20\lang1033\sbasedon1\snext11 Index;}
{\s12\sb240\sa60\cf1\qc{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\aspalpha\rtlch\af7\afs24\lang255\ltrch\dbch\af6\afs24\langfe255\loch\f2\fs32\lang1033\b\sbasedon1\snext13 Title;}
{\s13\sa60\cf1\qc{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\aspalpha\rtlch\af7\afs24\lang255\ltrch\dbch\af6\afs24\langfe255\loch\f2\fs24\lang1033\sbasedon1\snext2 Subtitle;}
{\s14\cf1{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\aspalpha\rtlch\af7\afs24\lang255\ltrch\dbch\af6\afs24\langfe255\loch\f1\fs24\sbasedon1\snext14 Normal;}
{\s15\sb240\sa60\keepn\cf1{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\aspalpha\rtlch\af7\afs24\lang255\ltrch\dbch\af6\afs24\langfe255\loch\f2\fs28\lang1033\b\sbasedon1\snext1 heading 1;}
{\s16\keepn\cf1{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\aspalpha\rtlch\af7\afs24\lang255\ltrch\dbch\af6\afs24\langfe255\loch\f1\fs20\b\sbasedon14\snext14 heading 2;}
{\s17\cf1{\*\tlswg8236}\tqc\tx4320{\*\tlswg8236}\tqr\tx8640{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\aspalpha\rtlch\af7\afs24\lang255\ltrch\dbch\af6\afs24\langfe255\loch\f1\fs20\lang1033\sbasedon1\snext17 header;}
{\s18\cf1{\*\tlswg8236}\tqc\tx4320{\*\tlswg8236}\tqr\tx8640{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\aspalpha\rtlch\af7\afs24\lang255\ltrch\dbch\af6\afs24\langfe255\loch\f1\fs20\lang1033\sbasedon1\snext18 footer;}
{\*\cs20\cf1\rtlch\af7\afs24\lang255\ltrch\dbch\af6\afs24\langfe255\loch\f1\fs24\lang1033 Numbering Symbols;}
{\*\cs21\cf1\rtlch\af7\afs24\lang255\ltrch\dbch\af6\afs24\langfe255\loch\f1\sbasedon22 Default Paragraph Font;}
{\*\cs22\cf1\rtlch\af7\afs24\lang255\ltrch\dbch\af6\afs24\langfe255\loch\f1 Normal;}
{\*\cs23\cf1\rtlch\af7\afs24\lang255\ltrch\dbch\af6\afs24\langfe255\loch\f1\sbasedon22 WW-Default Paragraph Font;}
{\*\cs24\cf1\rtlch\af7\afs24\lang255\ltrch\dbch\af6\afs24\langfe255\loch\f1\sbasedon23 page number;}
}
{\info{\title hw01 - cs131 - f02}{\creatim\yr2001\mo6\dy25\hr10\min4}{\operator Sharon Tuttle}{\revtim\yr2002\mo8\dy29\hr19\min53}{\printim\yr2002\mo8\dy29\hr18\min43}{\comment StarWriter}{\vern6410}}\deftab720
{\*\pgdsctbl
{\pgdsc0\pgdscuse195\pgwsxn12240\pghsxn15840\marglsxn1440\margrsxn1440\margtsxn1631\margbsxn1440\headery0{\*\headeryb283\headerxl0\headerxr0\headeryh0}{\header \pard\plain \s6\cf1{\*\tlswg8236}\tqc\tx4320{\*\tlswg8236}\tqr\tx8640{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\aspalpha\rtlch\af7\afs24\lang255\ltrch\dbch\af6\afs24\langfe255\loch\f1\fs20\lang1033 
\par }
\footery0{\*\footeryt283\footerxl0\footerxr0\footeryh0}{\footer \pard\plain \s7\cf1{\*\tlswg8236}\tqc\tx4320{\*\tlswg8236}\tqr\tx8640{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\aspalpha\rtlch\af7\afs24\lang255\ltrch\dbch\af6\afs24\langfe255\loch\f1\fs20\lang1033 
\par }
\pgdscnxt0 Default;}
{\pgdsc1\pgdscuse195\pgwsxn12240\pghsxn15840\marglsxn1440\margrsxn1440\margtsxn709\margbsxn720\headery0{\*\headeryb283\headerxl0\headerxr0\headeryh0}{\header \pard\plain \s17\cf1{\*\tlswg8236}\tqc\tx4320{\*\tlswg8236}\tqr\tx8640{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\aspalpha\rtlch\af7\afs24\lang255\ltrch\dbch\af6\afs24\langfe255\loch\f1\fs20\lang1033{\ltrch\loch\f1{\fs16 CS 131 - Homework #1\tab \tab p. }{\field{\*\fldinst \\page\\* ARABIC}{\fldrslt 2}}}
\par \pard\plain \s17\cf1{\*\tlswg8236}\tqc\tx4320{\*\tlswg8236}\tqr\tx8640{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\aspalpha\rtlch\af7\afs24\lang255\ltrch\dbch\af6\afs24\langfe255\loch\f1\fs20\lang1033\ltrch\loch\fs16 {\ltrch\loch\f1 Fall 2002}
\par }
\pgdscnxt1 RTF-SectionPage(1);}}
{\*\pgdscno1}\paperh15840\paperw12240\margl1440\margr1440\margt709\margb720\sectd\sbknone\pgwsxn12240\pghsxn15840\marglsxn1440\margrsxn1440\margtsxn1400\margbsxn720\headery709{\header \pard\plain \s17\cf1{\*\tlswg8236}\tqc\tx4320{\*\tlswg8236}\tqr\tx8640{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\aspalpha\rtlch\af7\afs24\lang255\ltrch\dbch\af6\afs24\langfe255\loch\f1\fs20\lang1033{\ltrch\loch\f1{\fs16 CS 131 - Homework #1\tab \tab p. }{\field{\*\fldinst \\page\\* ARABIC}{\fldrslt 2}}}
\par \pard\plain \s17\cf1{\*\tlswg8236}\tqc\tx4320{\*\tlswg8236}\tqr\tx8640{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\aspalpha\rtlch\af7\afs24\lang255\ltrch\dbch\af6\afs24\langfe255\loch\f1\fs20\lang1033\ltrch\loch\fs16 {\ltrch\loch\f1 Fall 2002}
\par }
\ftnbj\ftnstart1\ftnrstcont\ftnnar\aenddoc\aftnrstcont\aftnstart1\aftnnrlc
\pard\plain \s1\cf1{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\aspalpha\rtlch\af7\afs24\lang255\ltrch\dbch\af6\afs24\langfe255\loch\f1\fs20\lang1033\qc\ltrch\loch\fs22\b {\ltrch\loch\f1 CS 131 - Intro to Computer Science I - Fall 2002}
\par \pard\plain \s1\cf1{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\aspalpha\rtlch\af7\afs24\lang255\ltrch\dbch\af6\afs24\langfe255\loch\f1\fs20\lang1033\qc\ltrch\loch\fs22\b {\ltrch\loch\f1 Homework #1 }
\par {\ltrch\loch\f1 DUE: Tursday, September 6th, {\ul Beginning} of Lecture}
\par \pard\plain \s1\cf1{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\aspalpha\rtlch\af7\afs24\lang255\ltrch\dbch\af6\afs24\langfe255\loch\f1\fs20\lang1033\ltrch\loch\fs22 
\par {\ltrch\loch\f1 Because of the nature of this assignment, you may not work in pairs this time. Each should work on it individually.}
\par 
\par \pard\plain \s1\cf1{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\aspalpha\rtlch\af7\afs24\lang255\ltrch\dbch\af6\afs24\langfe255\loch\f1\fs20\lang1033\li420\ri0\fi-435\ltrch\loch\fs22 {\ltrch\loch\f1 0.\tab Start up DrScheme. In the definitions window (the top one) type in a comment-line containing your name, followed by a comment-line containing CS 131 HW 1, followed by a comment-line with no other text in it --- that is,}
\par \pard\plain \s1\cf1{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\aspalpha\rtlch\af7\afs24\lang255\ltrch\dbch\af6\afs24\langfe255\loch\f1\fs20\lang1033\li420\ri0\fi-435\ltrch\loch\f4\fs22 {\ltrch\loch\f4 ; type in YOUR name}
\par {\ltrch\loch\f4 ; CS 131 HW 1}
\par {\ltrch\loch\f4 ;}
\par 
\par \pard\plain \s1\cf1{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\aspalpha\rtlch\af7\afs24\lang255\ltrch\dbch\af6\afs24\langfe255\loch\f1\fs20\lang1033\li420\ri0\fi-435\ltrch\loch\fs22 {\ltrch\loch\f1 1.\tab Below what you typed in #0 above, type the comment line:}
\par \pard\plain \s1\cf1{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\aspalpha\rtlch\af7\afs24\lang255\ltrch\dbch\af6\afs24\langfe255\loch\f1\fs20\lang1033\li420\ri0\fi-435\ltrch\loch\f4\fs22 {\ltrch\loch\f4 ; Problem 1}
\par \pard\plain \s1\cf1{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\aspalpha\rtlch\af7\afs24\lang255\ltrch\dbch\af6\afs24\langfe255\loch\f1\fs20\lang1033\li420\ri0\fi-435\ltrch\loch\fs22 {\ltrch\loch\f1 \tab Write the following as Scheme expressions, and then type those resulting expressions, each starting on its own line, in the definitions window. Execute (push the Execute button) and see in the interactions window (in the lower window) if you get the expec
ted results for each.}
\par 
\par \pard\plain \s1\cf1{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\aspalpha\rtlch\af7\afs24\lang255\ltrch\dbch\af6\afs24\langfe255\loch\f1\fs20\lang1033\li855\ri0\fi-435\ltrch\loch\fs22 {\ltrch\loch\f1 (a)\tab the integer 17}
\par {\ltrch\loch\f1 (b)\tab the product of 17 and 12}
\par {\ltrch\loch\f1 (c)\tab 170 minus (5 raised to the 12th power)}
\par {\ltrch\loch\f1 (d)\tab the product of 5 and 6 and 7 and 8}
\par 
\par \pard\plain \s1\cf1{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\aspalpha\rtlch\af7\afs24\lang255\ltrch\dbch\af6\afs24\langfe255\loch\f1\fs20\lang1033\li450\ri0\fi-435\ltrch\loch\fs22 {\ltrch\loch\f1 2.\tab Now, in your definition window, type the comment line}
\par \pard\plain \s1\cf1{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\aspalpha\rtlch\af7\afs24\lang255\ltrch\dbch\af6\afs24\langfe255\loch\f1\fs20\lang1033\li450\ri0\fi-435\ltrch\loch\f4\fs22 {\ltrch\loch\f4 ;\tab Problem 2}
\par {\ltrch\loch\f4 \tab {\f1 Hand-evaluate the following Scheme expressions. After you are done, type them into your definition window (each starting on its own line) and type a comment AFTER each with your hand-evaluated result. Push the execute button, and see how your hand-evaluat
ions compare. For any that give an error message, COMMENT OUT that expression in your definition window (put a ; in FRONT of it) and re-execute (so the subsequent expressions will get a chance to execute!). (What if your hand-evaluation doesn't match? You 
can change it if you wish... the important thing here is thinking about what should happen, and then comparing it to what REALLY happens.)}}
\par \pard\plain \s1\cf1{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\aspalpha\rtlch\af7\afs24\lang255\ltrch\dbch\af6\afs24\langfe255\loch\f1\fs20\lang1033\li450\ri0\fi-435\ltrch\loch\fs22 
\par \pard\plain \s1\cf1{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\aspalpha\rtlch\af7\afs24\lang255\ltrch\dbch\af6\afs24\langfe255\loch\f1\fs20\lang1033\li855\ri0\fi-435\ltrch\loch\fs22 {\ltrch\loch\f1 (a) \tab {\f4 (- (* 3 5) 20)}}
\par {\ltrch\loch\f1 (b)\tab {\f4 (* pi (* 10 10))}}
\par {\ltrch\loch\f1 (c)\tab {\f4 (+ 73 false)}}
\par {\ltrch\loch\f1 (d)\tab {\f4 (/ 12 0)}}
\par {\ltrch\loch\f1 (e)\tab {\f4 (/ 1/3 2)}}
\par \pard\plain \s1\cf1{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\aspalpha\rtlch\af7\afs24\lang255\ltrch\dbch\af6\afs24\langfe255\loch\f1\fs20\lang1033\li450\ri0\fi-435\ltrch\loch\fs22 
\par \pard\plain \s1\cf1{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\aspalpha\rtlch\af7\afs24\lang255\ltrch\dbch\af6\afs24\langfe255\loch\f1\fs20\lang1033\li450\ri0\fi-435\ltrch\loch\fs22{\ltrch\loch\f1{\f1 3.}\tab {\f1 Now, in your definition window, type the comment line}}
\par \pard\plain \s1\cf1{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\aspalpha\rtlch\af7\afs24\lang255\ltrch\dbch\af6\afs24\langfe255\loch\f1\fs20\lang1033\li450\ri0\fi-435\ltrch\loch\f4\fs22 {\ltrch\loch\f4 ;\tab Problem 3}
\par \pard\plain \s1\cf1{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\aspalpha\rtlch\af7\afs24\lang255\ltrch\dbch\af6\afs24\langfe255\loch\f1\fs20\lang1033\li450\ri0\fi-435\ltrch\loch\fs22 {\ltrch\loch\f1 \tab Does Scheme have a built-in function for finding the maximum of some set of numbers? What might it be called? Try and see, and if you find one, see if works with 2 values, and with more than two values, and with just one value, and with no values. If you 
find it, and if you find it works with 2 numbers, type in an example expression demonstrating this in your definitions window. If you find that it works with more than two numbers, type in an example expression demonstrating this. If you find that it works
 with one number, type in an example demonstrating this. And, finally, if it works with no numbers, type in an expression demonstrating this. (Each of these expressions, if any, should begin on its own line.)}
\par 
\par {\ltrch\loch\f1 (continued on next page)}
\par \page\pard\plain \s1\cf1{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\aspalpha\rtlch\af7\afs24\lang255\ltrch\dbch\af6\afs24\langfe255\loch\f1\fs20\lang1033\li450\ri0\fi-435\ltrch\loch\fs22 {\ltrch\loch\f1 4.\tab Now, in your definition window, type the comment line}
\par \pard\plain \s1\cf1{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\aspalpha\rtlch\af7\afs24\lang255\ltrch\dbch\af6\afs24\langfe255\loch\f1\fs20\lang1033\li450\ri0\fi-435\ltrch\loch\f4\fs22 {\ltrch\loch\f4 ;\tab Problem 4}
\par {\ltrch\loch\f4 \tab {\f1 The following may or may not be "proper" Scheme expressions (expressions that follow Scheme's syntax rules). Correct any that are not, and then type each (now-"legal"-syntax) Scheme expression in your definitions window (starting on its own line).}}
\par \pard\plain \s1\cf1{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\aspalpha\rtlch\af7\afs24\lang255\ltrch\dbch\af6\afs24\langfe255\loch\f1\fs20\lang1033\li450\ri0\fi-435\ltrch\loch\fs22 
\par \pard\plain \s1\cf1{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\aspalpha\rtlch\af7\afs24\lang255\ltrch\dbch\af6\afs24\langfe255\loch\f1\fs20\lang1033\li855\ri0\fi-435\ltrch\loch\fs22 {\ltrch\loch\f1 (a)\tab {\f4 (13)}}
\par {\ltrch\loch\f1 (b) \tab {\f4 (+ 1/3 2/3)}}
\par {\ltrch\loch\f1 (c)\tab {\f4 + 7 8}}
\par {\ltrch\loch\f1 (d)\tab {\f4 (* (/ 7 3) (8))}}
\par \pard\plain \s1\cf1{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\aspalpha\rtlch\af7\afs24\lang255\ltrch\dbch\af6\afs24\langfe255\loch\f1\fs20\lang1033\li450\ri0\fi-435\rtlch\af5\ai\ab\ltrch\dbch\af5\ai\ab\loch\f5\fs22\i\b 
\par \pard\plain \s1\cf1{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\aspalpha\rtlch\af7\afs24\lang255\ltrch\dbch\af6\afs24\langfe255\loch\f1\fs20\lang1033\li450\ri0\fi-435\ltrch\loch\fs22{\ltrch\loch\f1{\cf1 When you are done with problems 1-4, save your definitions window contents using the "Save Definitions" command under the File menu. E-mail the contents of this saved file to {\b st10@humboldt.edu}, either by cut-and-paste or attachment or whatever is easiest f
or you. Make the subject line of your message {\b 131hw01}. (If you are not sure how to accomplish this e-mailing, let me know, and I'll give additional instructions.)}}
\par \pard\plain \s1\cf1{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\aspalpha\rtlch\af7\afs24\lang255\ltrch\dbch\af6\afs24\langfe255\loch\f1\fs20\lang1033\rtlch\af5\ltrch\dbch\af5\loch\f5\fs22 
\par 
\par }