{\rtf1\ansi\ansicpg1252\uc1 \deff0\deflang1033\deflangfe1033{\fonttbl{\f0\froman\fcharset0\fprq2{\*\panose 02020603050405020304}Times New Roman{\*\falt Thorndale};}{\f28\froman\fcharset238\fprq2 Times New Roman CE{\*\falt Thorndale};}
{\f29\froman\fcharset204\fprq2 Times New Roman Cyr{\*\falt Thorndale};}{\f31\froman\fcharset161\fprq2 Times New Roman Greek{\*\falt Thorndale};}{\f32\froman\fcharset162\fprq2 Times New Roman Tur{\*\falt Thorndale};}
{\f33\froman\fcharset177\fprq2 Times New Roman (Hebrew){\*\falt Thorndale};}{\f34\froman\fcharset178\fprq2 Times New Roman (Arabic){\*\falt Thorndale};}{\f35\froman\fcharset186\fprq2 Times New Roman Baltic{\*\falt Thorndale};}}
{\colortbl;\red0\green0\blue0;\red0\green0\blue255;\red0\green255\blue255;\red0\green255\blue0;\red255\green0\blue255;\red255\green0\blue0;\red255\green255\blue0;\red255\green255\blue255;\red0\green0\blue128;\red0\green128\blue128;\red0\green128\blue0;
\red128\green0\blue128;\red128\green0\blue0;\red128\green128\blue0;\red128\green128\blue128;\red192\green192\blue192;}{\stylesheet{\ql \li0\ri0\nowidctlpar\faauto\rin0\lin0\itap0 \fs24\cf1\lang1033\langfe255\cgrid\langnp1033\langfenp255 \snext0 Normal;}{
\s1\ql \li0\ri0\sb240\sa60\keepn\nowidctlpar\aspalpha\faauto\rin0\lin0\itap0 \b\fs28\lang1033\langfe1033\cgrid\langnp1033\langfenp1033 \sbasedon15 \snext15 heading 1;}{\s2\ql \li0\ri0\keepn\nowidctlpar\aspalpha\faauto\rin0\lin0\itap0 
\b\fs20\cf1\lang1033\langfe255\cgrid\langnp1033\langfenp255 \sbasedon0 \snext0 heading 2;}{\*\cs10 \additive Default Paragraph Font;}{\s15\ql \li0\ri0\nowidctlpar\aspalpha\faauto\rin0\lin0\itap0 \fs20\lang1033\langfe1033\cgrid\langnp1033\langfenp1033 
\snext15 Default;}{\s16\ql \li0\ri0\sa120\nowidctlpar\aspalpha\faauto\rin0\lin0\itap0 \fs20\lang1033\langfe1033\cgrid\langnp1033\langfenp1033 \sbasedon15 \snext16 Text body;}{\s17\ql \li0\ri0\sb240\sa120\keepn\nowidctlpar\aspalpha\faauto\rin0\lin0\itap0 
\fs28\lang1033\langfe1033\cgrid\langnp1033\langfenp1033 \sbasedon15 \snext16 Heading;}{\s18\ql \fi-360\li360\ri0\nowidctlpar\aspalpha\faauto\rin0\lin360\itap0 \fs20\lang1033\langfe1033\cgrid\langnp1033\langfenp1033 \sbasedon15 \snext18 List;}{
\s19\ql \fi-360\li720\ri0\nowidctlpar\aspalpha\faauto\rin0\lin720\itap0 \fs20\lang1033\langfe1033\cgrid\langnp1033\langfenp1033 \sbasedon15 \snext19 List 2;}{\s20\ql \li0\ri0\nowidctlpar\tqc\tx4320\tqr\tx8640\aspalpha\faauto\rin0\lin0\itap0 
\fs20\lang1033\langfe1033\cgrid\langnp1033\langfenp1033 \sbasedon15 \snext20 header;}{\s21\ql \li0\ri0\sa120\nowidctlpar\aspalpha\faauto\rin0\lin0\itap0 \fs20\lang1033\langfe1033\cgrid\langnp1033\langfenp1033 \sbasedon16 \snext21 Table Contents;}{
\s22\qc \li0\ri0\sa120\nowidctlpar\aspalpha\faauto\rin0\lin0\itap0 \b\i\fs20\lang1033\langfe1033\cgrid\langnp1033\langfenp1033 \sbasedon21 \snext22 Table Heading;}{\s23\ql \li0\ri0\nowidctlpar\aspalpha\faauto\rin0\lin0\itap0 
\fs20\lang1033\langfe1033\cgrid\langnp1033\langfenp1033 \sbasedon15 \snext23 Index;}{\s24\qc \li0\ri0\sb240\sa60\nowidctlpar\aspalpha\faauto\rin0\lin0\itap0 \b\fs32\lang1033\langfe1033\cgrid\langnp1033\langfenp1033 \sbasedon15 \snext25 Title;}{
\s25\qc \li0\ri0\sa60\nowidctlpar\aspalpha\faauto\rin0\lin0\itap0 \fs24\lang1033\langfe1033\cgrid\langnp1033\langfenp1033 \sbasedon15 \snext16 Subtitle;}{\s26\ql \li0\ri0\nowidctlpar\tqc\tx4320\tqr\tx8640\aspalpha\faauto\rin0\lin0\itap0 
\fs20\lang1033\langfe1033\cgrid\langnp1033\langfenp1033 \sbasedon15 \snext26 footer;}{\s27\ql \li0\ri0\sb120\sa120\nowidctlpar\aspalpha\faauto\rin0\lin0\itap0 \i\fs20\lang1033\langfe1033\cgrid\langnp1033\langfenp1033 \sbasedon15 \snext27 caption;}{\*
\cs28 \additive \cf1\lang0\langfe255\langfenp255 Numbering Symbols;}{\*\cs29 \additive \cf1\lang0\langfe255\langfenp255 WW-Default Paragraph Font;}{\*\cs30 \additive \cf1\lang0\langfe255\langfenp255 \sbasedon29 page number;}}{\info{\author CNRS}
{\operator CNRS}{\creatim\yr2003\mo8\dy29\hr23\min17}{\revtim\yr2003\mo9\dy5\hr9\min35}{\printim\yr2113\mo1\dy1}{\version4}{\edmins2}{\nofpages1}{\nofwords395}{\nofchars2256}{\*\company CNRS-HSU}{\nofcharsws2770}{\vern8269}}
\margl1440\margr1440\margt1400\margb720 \widowctrl\ftnbj\aenddoc\noxlattoyen\expshrtn\noultrlspc\dntblnsbdb\nospaceforul\hyphcaps0\horzdoc\dghspace120\dgvspace120\dghorigin1701\dgvorigin1984\dghshow0\dgvshow3\jcompress\viewkind1\viewscale100\nolnhtadjtbl 
\fet0\sectd \sbknone\linex0\headery709\sectdefaultcl {\header \pard\plain \s20\ql \li0\ri0\nowidctlpar\tqc\tx4320\tqr\tx8640\aspalpha\faauto\rin0\lin0\itap0 \fs20\lang1033\langfe1033\cgrid\langnp1033\langfenp1033 {\fs16 CS 131 - Homework #2\tab \tab p. }
{\field{\*\fldinst {\\page\\* ALPHABETIC}}{\fldrslt {A}}}{
\par }{\fs16 Fall 2003
\par }}{\*\pnseclvl1\pnucrm\pnstart1\pnindent720\pnhang{\pntxta .}}{\*\pnseclvl2\pnucltr\pnstart1\pnindent720\pnhang{\pntxta .}}{\*\pnseclvl3\pndec\pnstart1\pnindent720\pnhang{\pntxta .}}{\*\pnseclvl4\pnlcltr\pnstart1\pnindent720\pnhang{\pntxta )}}
{\*\pnseclvl5\pndec\pnstart1\pnindent720\pnhang{\pntxtb (}{\pntxta )}}{\*\pnseclvl6\pnlcltr\pnstart1\pnindent720\pnhang{\pntxtb (}{\pntxta )}}{\*\pnseclvl7\pnlcrm\pnstart1\pnindent720\pnhang{\pntxtb (}{\pntxta )}}{\*\pnseclvl8
\pnlcltr\pnstart1\pnindent720\pnhang{\pntxtb (}{\pntxta )}}{\*\pnseclvl9\pnlcrm\pnstart1\pnindent720\pnhang{\pntxtb (}{\pntxta )}}\pard\plain \s15\qc \li0\ri0\nowidctlpar\aspalpha\faauto\rin0\lin0\itap0 
\fs20\lang1033\langfe1033\cgrid\langnp1033\langfenp1033 {\b\fs22 CS 131 - Intro to Computer Science I - Fall 2003
\par Homework #2 
\par DUE: Friday, September 12th, }{\b\fs22\ul Beginning}{\b\fs22  of Lab
\par }\pard \s15\ql \li0\ri0\nowidctlpar\aspalpha\faauto\rin0\lin0\itap0 {\fs22 
\par You are to work individually on this assignment.
\par 
\par We are still in the unusual part of the semester in which you are using tools that automatically send me information, so running }{\b\fs22 funct_play0}{\fs22 
 successfully from cs-server will automatically "turn in" your work. Enjoy this while it lasts... 8-)
\par 
\par You will be reading about a }{\b\fs22 program design recipe}{\fs22 
 in the reading for next week --- you are not required to use this for this homework, but you will be required to do so for HW #3 (and beyond). (Of course, if you WANT to use the program design recipe while developing these, that's great!)
 (Also: there is a possibility that }{\b\fs22 funct_play1}{\fs22  will be made available before this homework is due. If you\rquote d like to use it instead of }{\b\fs22 funct_play0}{\fs22 , that is also cheerfully permitted.)
\par 
\par }{\b\fs22 Reading Packet #3 - Section 2, Part 2 }{\fs22 contains the exercises referenced below. Note that the homework problem sometimes adds additional requirements to the problem as stated in the reading packet.}{\b\fs22 
\par }{\fs22 
\par }\pard \s15\ql \fi-285\li285\ri0\nowidctlpar\aspalpha\faauto\rin0\lin285\itap0 {\b\fs22 1.\tab }{\fs22 Do Exercise }{\b\fs22 2.2.1}{\fs22  in }{\b\fs22 Reading Packet #3.
\par }{\fs22 
\par }{\b\fs22 2.\tab }{\fs22 Use }{\b\fs22 funct_play0}{\fs22  to do Exercise }{\b\fs22 2.2.2}{\fs22 , and enter at least two different arithmetic expressions featuring calls to your function (on at least two different dollar amounts).}{\b\fs22 
\par }{\fs22 
\par }{\b\fs22 3.\tab }{\fs22 Use }{\b\fs22 funct_play0}{\fs22  to do Exercise }{\b\fs22 2.2.3}{\fs22 , and enter at least two different arithmetic expressions featuring calls to your function (featuring different arguments).}{\b\fs22 
\par }{\fs22 
\par }{\b\fs22 4.\tab }{\fs22 Use }{\b\fs22 funct_play0}{\fs22  to do Exercise }{\b\fs22 2.2.4}{\fs22 , and enter at least two different arithmetic expressions featuring calls to your function (featuring different arguments) ---
 BUT one of those expressions must be the example given, }{\b\fs22 convert3(1, 2, 3)}{\fs22 .}{\b\fs22 
\par }{\fs22 
\par }{\b\fs22 5.\tab }{\fs22 Use }{\b\fs22 funct_play0}{\fs22  to do Exercise }{\b\fs22 2.2.5}{\fs22 .}{\b\fs22 
\par }{\fs22 
\par }{\b\fs22 6.\tab }{\fs22 Use }{\b\fs22 funct_play0}{\fs22  to do Exercise }{\b\fs22 2.3.1}{\fs22 , and, for each of the functions you need to write for this exercise, enter at least two different
 arithmetic expressions featuring calls to that function (featuring different arguments). (Be sure to call other functions as appropriate within function definitions.)}{\b\fs22 
\par }{\fs22 
\par }{\b\fs22 7.\tab }{\fs22 Use }{\b\fs22 funct_play0}{\fs22  to do Exercise }{\b\fs22 2.3.2}{\fs22 , and enter at least two different arithmetic expressions featuring calls to your function (featuring different arguments).}{\b\fs22 
\par }{\fs22 
\par }{\b\fs22 8.}{\fs22 \tab Use }{\b\fs22 funct_play0}{\fs22  to do Exercise }{\b\fs22 2.3.3}{\fs22 , and enter at least two different arithmetic expressions featuring calls to your function (featuring different arguments).}{\b\fs22 
\par }{\fs22 
\par }{\b\fs22 9.\tab }{\fs22 Use }{\b\fs22 funct_play0}{\fs22  to help you write a function }{\b\fs22 minutes_to_hours}{\fs22 
, that takes a number of minutes and converts it to a number of hours. Enter at least three different arithmetic expressions featuring calls to your function, featuring at least one argument less tha
n 60, at least one argument between 60 and 120, and at least one argument greater than 120.}{\b\fs22 
\par }{\fs22 
\par }\pard \s15\ql \fi-435\li450\ri0\nowidctlpar\aspalpha\faauto\rin0\lin450\itap0 {
\par }\pard \s15\ql \fi-285\li285\ri0\nowidctlpar\aspalpha\faauto\rin0\lin285\itap0 {\fs22 
\par }\pard \s15\ql \li0\ri0\nowidctlpar\aspalpha\faauto\rin0\lin0\itap0 {\b\fs22 
\par }{\b\fs22 
\par }\pard \s15\ql \fi-450\li420\ri0\nowidctlpar\aspalpha\faauto\rin0\lin420\itap0 {\fs22 
\par 
\par }}