{\rtf1\ansi\deff1\adeflang1025
{\fonttbl{\f0\froman\fprq2\fcharset0 Times New Roman{\*\falt Thorndale};}{\f1\froman\fprq2\fcharset0 Times New Roman;}{\f2\froman\fprq2\fcharset0 Times New Roman;}{\f3\fmodern\fprq1\fcharset0 Courier New;}}
{\colortbl;\red0\green0\blue0;\red128\green128\blue128;}
{\stylesheet{\s1\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\aspalpha\rtlch\af1\afs20\lang1033\ltrch\dbch\af1\afs20\langfe1033\loch\f1\fs20\lang1033\snext1 Default;}
{\s2\sa120\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\aspalpha\rtlch\af1\afs20\lang1033\ltrch\dbch\af1\afs20\langfe1033\loch\f1\fs20\lang1033\sbasedon1\snext2 Text body;}
{\s3\sb240\sa120\keepn\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\aspalpha\rtlch\af1\afs28\lang1033\ltrch\dbch\afs28\langfe1033\loch\fs28\lang1033\sbasedon1\snext2 Heading;}
{\s4\li360\ri0\fi-360\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\aspalpha\rtlch\af1\afs20\lang1033\ltrch\dbch\af1\afs20\langfe1033\loch\f1\fs20\lang1033\sbasedon1\snext4 List;}
{\s5\li720\ri0\fi-360\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\aspalpha\rtlch\af1\afs20\lang1033\ltrch\dbch\af1\afs20\langfe1033\loch\f1\fs20\lang1033\sbasedon1\snext5 List 2;}
{\s6\cf0{\*\tlswg8236}\tqc\tx4320{\*\tlswg8236}\tqr\tx8640{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\aspalpha\rtlch\af1\afs20\lang1033\ltrch\dbch\af1\afs20\langfe1033\loch\f1\fs20\lang1033\sbasedon1\snext6 Header;}
{\s7\sa120\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\aspalpha\rtlch\af1\afs20\lang1033\ltrch\dbch\af1\afs20\langfe1033\loch\f1\fs20\lang1033\sbasedon2\snext7 Table Contents;}
{\s8\sa120\cf0\qc{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\aspalpha\rtlch\af1\afs20\lang1033\ai\ab\ltrch\dbch\af1\afs20\langfe1033\ai\ab\loch\f1\fs20\lang1033\i\b\sbasedon7\snext8 Table Heading;}
{\s9\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\aspalpha\rtlch\af1\afs20\lang1033\ltrch\dbch\af1\afs20\langfe1033\loch\f1\fs20\lang1033\sbasedon1\snext9 Index;}
{\s10\sb240\sa60\cf0\qc{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\aspalpha\rtlch\af1\afs32\lang1033\ab\ltrch\dbch\afs32\langfe1033\ab\loch\fs32\lang1033\b\sbasedon1\snext11 Title;}
{\s11\sa60\cf0\qc{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\aspalpha\rtlch\af1\afs24\lang1033\ltrch\dbch\afs24\langfe1033\loch\fs24\lang1033\sbasedon1\snext2 Subtitle;}
{\s12\cf1{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\aspalpha\rtlch\af1\afs24\lang1033\ltrch\dbch\af1\afs24\langfe255\loch\f1\fs24\sbasedon1\snext12 Normal;}
{\s13\sb240\sa60\keepn\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\aspalpha\rtlch\af1\afs28\lang1033\ab\ltrch\dbch\afs28\langfe1033\ab\loch\fs28\lang1033\b\sbasedon1\snext1 heading 1;}
{\s14\keepn\cf1{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\aspalpha\rtlch\af1\afs20\lang1033\ab\ltrch\dbch\af1\afs20\langfe255\ab\loch\f1\fs20\b\sbasedon12\snext12 heading 2;}
{\s15\cf0{\*\tlswg8236}\tqc\tx4320{\*\tlswg8236}\tqr\tx8640{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\aspalpha\rtlch\af1\afs20\lang1033\ltrch\dbch\af1\afs20\langfe1033\loch\f1\fs20\lang1033\sbasedon1\snext15 header;}
{\s16\cf0{\*\tlswg8236}\tqc\tx4320{\*\tlswg8236}\tqr\tx8640{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\aspalpha\rtlch\af1\afs20\lang1033\ltrch\dbch\af1\afs20\langfe1033\loch\f1\fs20\lang1033\sbasedon1\snext16 footer;}
{\s17\sb120\sa120\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\aspalpha\rtlch\af1\afs20\lang1033\ai\ltrch\dbch\af1\afs20\langfe1033\ai\loch\f1\fs20\lang1033\i\sbasedon1\snext17 caption;}
{\*\cs19\cf1\rtlch\af1\lang1033\ltrch\dbch\af1\langfe255\loch\f1\sbasedon21 Numbering Symbols;}
{\*\cs20\cf1\rtlch\af1\lang1033\ltrch\dbch\af1\langfe1033\loch\f1\sbasedon21 Default Paragraph Font;}
{\*\cs21\cf1\rtlch\af1\lang1033\ltrch\dbch\af1\langfe255\loch\f1 Normal;}
{\*\cs22\cf1\rtlch\af1\lang1033\ltrch\dbch\af1\langfe255\loch\f1\sbasedon21 WW-Default Paragraph Font;}
{\*\cs23\cf1\rtlch\af1\lang1033\ltrch\dbch\af1\langfe255\loch\f1\sbasedon22 page number;}
}
{\info{\creatim\yr2003\mo8\dy29\hr23\min17}{\operator Sharon Tuttle}{\revtim\yr2003\mo9\dy12\hr12\min57}{\printim\yr1601\mo1\dy1\hr0\min0}{\comment StarWriter}{\vern6410}}\deftab720
{\*\pgdsctbl
{\pgdsc0\pgdscuse195\pgwsxn12240\pghsxn15840\marglsxn1440\margrsxn1440\margtsxn1400\margbsxn720\pgdscnxt0 Default;}
{\pgdsc1\pgdscuse195\pgwsxn12240\pghsxn15840\marglsxn1440\margrsxn1440\margtsxn709\margbsxn720\headery0{\*\headeryb0\headerxl0\headerxr0\headeryh691}{\header \pard\plain \s15\cf0{\*\tlswg8236}\tqc\tx4320{\*\tlswg8236}\tqr\tx8640{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\aspalpha\rtlch\af1\afs20\lang1033\ltrch\dbch\af1\afs20\langfe1033\loch\f1\fs20\lang1033{\ltrch\loch\f1{\fs16 CS 131 - Homework #3\tab \tab p. }{\field{\*\fldinst \\page\\* ALPHABETIC}{\fldrslt A}}}
\par \pard\plain \s15\cf0{\*\tlswg8236}\tqc\tx4320{\*\tlswg8236}\tqr\tx8640{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\aspalpha\rtlch\af1\afs20\lang1033\ltrch\dbch\af1\afs20\langfe1033\loch\f1\fs20\lang1033\rtlch\afs16\ltrch\dbch\afs16\loch\fs16 {\ltrch\loch\f1 Fall 2003}
\par }
\pgdscnxt1 Convert 1;}}
{\*\pgdscno1}\paperh15840\paperw12240\margl1440\margr1440\margt709\margb720\sectd\sbknone\pgwsxn12240\pghsxn15840\marglsxn1440\margrsxn1440\margtsxn1400\margbsxn720\headery709{\header \pard\plain \s15\cf0{\*\tlswg8236}\tqc\tx4320{\*\tlswg8236}\tqr\tx8640{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\aspalpha\rtlch\af1\afs20\lang1033\ltrch\dbch\af1\afs20\langfe1033\loch\f1\fs20\lang1033{\ltrch\loch\f1{\fs16 CS 131 - Homework #3\tab \tab p. }{\field{\*\fldinst \\page\\* ALPHABETIC}{\fldrslt A}}}
\par \pard\plain \s15\cf0{\*\tlswg8236}\tqc\tx4320{\*\tlswg8236}\tqr\tx8640{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\aspalpha\rtlch\af1\afs20\lang1033\ltrch\dbch\af1\afs20\langfe1033\loch\f1\fs20\lang1033\rtlch\afs16\ltrch\dbch\afs16\loch\fs16 {\ltrch\loch\f1 Fall 2003}
\par }
\ftnbj\ftnstart1\ftnrstcont\ftnnar\aenddoc\aftnrstcont\aftnstart1\aftnnrlc
\pard\plain \s1\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\aspalpha\rtlch\af1\afs20\lang1033\ltrch\dbch\af1\afs20\langfe1033\loch\f1\fs20\lang1033\qc\rtlch\afs22\ab\ltrch\dbch\afs22\ab\loch\fs22\b {\ltrch\loch\f1 CS 131 - Intro to Computer Science I - Fall 2003}
\par \pard\plain \s1\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\aspalpha\rtlch\af1\afs20\lang1033\ltrch\dbch\af1\afs20\langfe1033\loch\f1\fs20\lang1033\qc\rtlch\afs22\ab\ltrch\dbch\afs22\ab\loch\fs22\b {\ltrch\loch\f1 Homework #3}
\par {\ltrch\loch\f1 DUE: Friday, September 19th, {\ul Beginning} of Lab}
\par \pard\plain \s1\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\aspalpha\rtlch\af1\afs20\lang1033\ltrch\dbch\af1\afs20\langfe1033\loch\f1\fs20\lang1033\rtlch\afs22\ltrch\dbch\afs22\loch\fs22 
\par {\ltrch\loch\f1 You are to work individually on this assignment.}
\par 
\par {\ltrch\loch\f1 NOTE: For each course script, there is now a second version --- whose name ends in {\b _1}{\b0  (underscore one)--- that also sends a copy of what it sends to me to your axe e-mail account. That is, }{\b funct_play0_1}{\b0  does the same thing that }{\b funct_play0 }{\b0 does, but it sen
ds it to both you and me instead of just to me. You may use the }{\b _1}{\b0  version or not, your choice! (...but, for my sanity, I'm not going to say "or the}{\b  _1 }{\b0 version" every time I am specifying the use of a script.)}}
\par \pard\plain \s1\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\aspalpha\rtlch\af1\afs20\lang1033\ltrch\dbch\af1\afs20\langfe1033\loch\f1\fs20\lang1033\rtlch\afs22\ltrch\dbch\afs22\loch\fs22 
\par \pard\plain \s1\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\aspalpha\rtlch\af1\afs20\lang1033\ltrch\dbch\af1\afs20\langfe1033\loch\f1\fs20\lang1033\rtlch\afs22\ltrch\dbch\afs22\loch\fs22 {\ltrch\loch\f1 You should use {\b funct_play1}{\b0   and }{\b expr_play2 }{\b0  for this assignment; use of }{\b funct_play0}{\b0  and/or }{\b expr_play}{\b0  will not receive full credit. You can copy them to your cs-server }{\b bin}{\b0  directory as follows:}}
\par \pard\plain \s1\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\aspalpha\rtlch\af1\afs20\lang1033\ltrch\dbch\af1\afs20\langfe1033\loch\f1\fs20\lang1033\rtlch\afs22\ltrch\dbch\afs22\loch\fs22 
\par \pard\plain \s1\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\aspalpha\rtlch\af1\afs20\lang1033\ltrch\dbch\af1\afs20\langfe1033\loch\f1\fs20\lang1033\rtlch\afs22\ltrch\dbch\afs22\loch\f3\fs22 {\ltrch\loch\f3 # assuming you've just logged onto cs-server}
\par {\ltrch\loch\f3 cd bin}
\par {\ltrch\loch\f3 cp ~st10/f03cs131_public/funct_play1 funct_play1}
\par {\ltrch\loch\f3 cp ~st10/f03cs131_public/expr_play2 expr_play2}
\par {\ltrch\loch\f3 chmod 700 funct_play1}
\par {\ltrch\loch\f3 chmod 700 expr_play2}
\par {\ltrch\loch\f3 # (and you could copy funct_play1_1, expr_play2_1, funct_play0_1,}
\par {\ltrch\loch\f3 #    and expr_play_1 analogously, if desired.)}
\par 
\par \pard\plain \s1\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\aspalpha\rtlch\af1\afs20\lang1033\ltrch\dbch\af1\afs20\langfe1033\loch\f1\fs20\lang1033\rtlch\afs22\ltrch\dbch\afs22\loch\fs22 {\ltrch\loch\f1 We are still in the unusual part of the semester in which you are using tools that automatically send me information, so running {\b funct_play1}{\b0  and}{\b  expr_play2 }{\b0 successfully from cs-server will automatically "turn in" your work. Enjoy this while it lasts... 8-)
}}
\par 
\par {\ltrch\loch\f1 Note that {\b funct_play1}{\b0  prompts you for program recipe elements --- you are expected to enter these elements for all functions, starting now (as of 131 HW #3). Your homework may be evaluated on whether these program recipe elements are included and are "corr
ect" or reasonable.}}
\par 
\par \pard\plain \s1\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\aspalpha\rtlch\af1\afs20\lang1033\ltrch\dbch\af1\afs20\langfe1033\loch\f1\fs20\lang1033\rtlch\afs22\ltrch\dbch\afs22\loch\fs22\b {\ltrch\loch\f1 LAB #3 LAB EXERCISE: due BEFORE 3 pm on FRIDAY, SEPTEMBER 12th}
\par \pard\plain \s1\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\aspalpha\rtlch\af1\afs20\lang1033\ltrch\dbch\af1\afs20\langfe1033\loch\f1\fs20\lang1033\li420\ri0\fi-420\rtlch\afs22\ltrch\dbch\afs22\loch\fs22 {\ltrch\loch\f1 1.\tab Copy (at least)  {\b funct_play1} and {\b expr_play2} to your {\b bin} directory on cs-server.}
\par 
\par {\ltrch\loch\f1 2.\tab Enter in a new (not-currently-existing) function, complete with design recipe elements, using {\b funct_play1,} including at least two different example calls for your new function. It may be any function of your choice (that you newly type in) --- it can ev
en be one from the reading or in-class. This will let me know if you can use {\b funct_play1} properly (and if there are, ah, any immediate bugs in it... 8-) )}
\par 
\par {\ltrch\loch\f1 3.\tab Now, use {\b expr_play2} to successfully test the examples you included in the Examples: section of your design recipe for the function that you entered in #2.}
\par 
\par \pard\plain \s1\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\aspalpha\rtlch\af1\afs20\lang1033\ltrch\dbch\af1\afs20\langfe1033\loch\f1\fs20\lang1033\li420\ri0\fi-420\rtlch\afs22\ltrch\dbch\afs22\loch\fs22\b {\ltrch\loch\f1 HOMEWORK #3: due BY 1:00 PM on FRIDAY, SEPTEMBER 19th}
\par \pard\plain \s1\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\aspalpha\rtlch\af1\afs20\lang1033\ltrch\dbch\af1\afs20\langfe1033\loch\f1\fs20\lang1033\li420\ri0\fi-420\rtlch\afs22\ltrch\dbch\afs22\loch\fs22 {\ltrch\loch\f1 1.\tab Do {\b Exercise #3.2.1 in Reading Packet #5 - Section 3. }{\b0  You should have examples for each of the four functions, after entering them using }{\b funct_play1}{\b0  --- re-run those examples after introducing the named constants, and make sure that they all still retur
n the expected results.}}
\par 
\par {\ltrch\loch\f1 2.\tab Do {\b Exercise #3.3.1, #3.3.2{\b0  and}{\b  #3.3.3 }in Reading Packet #5 - Section 3. }Be sure to execute all examples that you include after successfully compiling each function, using either {\b funct_play1} or {\b expr_play2}.}
\par \pard\plain \s1\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\aspalpha\rtlch\af1\afs20\lang1033\ltrch\dbch\af1\afs20\langfe1033\loch\f1\fs20\lang1033\li420\ri0\fi-420\rtlch\afs22\ab\ltrch\dbch\afs22\ab\loch\fs22\b 
\par \pard\plain \s1\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\aspalpha\rtlch\af1\afs20\lang1033\ltrch\dbch\af1\afs20\langfe1033\loch\f1\fs20\lang1033\li420\ri0\fi-450\rtlch\afs22\ltrch\dbch\afs22\loch\fs22 
\par }