<?xml version="1.0" encoding="UTF-8"?>
<Worksheet>
<Version major="12" minor="1"/>
<Label-Scheme value="2" prefix=""/>
<View-Properties presentation="false"></View-Properties>
<MapleNet-Properties elisiondigitsbefore="100" labelling="true" indentamount="4" elisiontermsthreshold="10000" ansi="false" errorbreak="1" useclientjvm="true" echo="1" imaginaryunit="I" labelwidth="20" plotdriver="openviz" elisiondigitsafter="100" plotoutput="terminal" rtablesize="10" elisiontermsbefore="100" elisiondigitsthreshold="10000" typesetting="standard" plotdevice="inline" verboseproc="1" showassumed="1" errorcursor="false" longdelim="true" plotoptions="" quiet="false" elisiontermsafter="100" screenwidth="79" preplot="" prettyprint="3" displayprecision="-1" warnlevel="3" screenheight="25" latexwidth="6.0" postplot="" prompt="&gt; " ShowLabels="true"/>
<Styles><Font name="Ordered List 1" background="[255,255,255]" bold="false" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="false" placeholder="false"/>
<Font name="Annotation Text" background="[255,255,255]" bold="false" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="false" placeholder="false"/>
<Font name="Ordered List 2" background="[255,255,255]" bold="false" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="false" placeholder="false"/>
<Font name="Ordered List 3" background="[255,255,255]" bold="false" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="false" placeholder="false"/>
<Font name="Ordered List 4" background="[255,255,255]" bold="false" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="false" placeholder="false"/>
<Font name="Ordered List 5" background="[255,255,255]" bold="false" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="false" placeholder="false"/>
<Font name="Author" background="[255,255,255]" bold="false" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="false" placeholder="false"/>
<Font name="Annotation Title" background="[255,255,255]" bold="true" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="18" subscript="false" superscript="false" underline="false" placeholder="false"/>
<Font name="Warning" background="[255,255,255]" bold="false" executable="false" family="Monospaced" foreground="[0,0,255]" italic="false" opaque="false" readonly="true" size="12" subscript="false" superscript="false" underline="false" placeholder="false"/>
<Font name="Maple Input Placeholder" background="[255,255,255]" bold="true" executable="true" family="Monospaced" foreground="[200,0,200]" italic="false" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="false" placeholder="true"/>
<Font name="Maple Plot" background="[255,255,255]" bold="false" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="false" placeholder="false"/>
<Font name="Code" background="[255,255,255]" bold="false" executable="false" family="Monospaced" foreground="[255,0,0]" italic="false" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="false" placeholder="false"/>
<Font name="Line Printed Output" background="[255,255,255]" bold="false" executable="false" family="Monospaced" foreground="[0,0,255]" italic="false" opaque="false" readonly="true" size="12" subscript="false" superscript="false" underline="false" placeholder="false"/>
<Font name="Text Output" background="[255,255,255]" bold="false" executable="false" family="Monospaced" foreground="[0,0,255]" italic="false" opaque="false" readonly="true" size="12" subscript="false" superscript="false" underline="false" placeholder="false"/>
<Font name="Diagnostic" background="[255,255,255]" bold="false" executable="false" family="Monospaced" foreground="[40,120,40]" italic="false" opaque="false" readonly="true" size="12" subscript="false" superscript="false" underline="false" placeholder="false"/>
<Font name="2D Inert Output" background="[255,255,255]" bold="false" executable="true" family="Times New Roman" foreground="[144,144,144]" italic="false" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="false" placeholder="false"/>
<Font name="Normal" background="[255,255,255]" bold="false" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="false" placeholder="false"/>
<Font name="Hyperlink" background="[255,255,255]" bold="false" executable="false" family="Serif" foreground="[0,128,128]" italic="false" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="true" placeholder="false"/>
<Font name="Maple Output" background="[255,255,255]" bold="false" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="false" placeholder="false"/>
<Font name="Dash Item" background="[255,255,255]" bold="false" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="false" placeholder="false"/>
<Font name="2D Math" background="[255,255,255]" bold="false" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="false" placeholder="false"/>
<Font name="Maple Input" background="[255,255,255]" bold="true" executable="true" family="Monospaced" foreground="[255,0,0]" italic="false" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="false" placeholder="false"/>
<Font name="2D Output" background="[255,255,255]" bold="false" executable="false" family="Times New Roman" foreground="[0,0,255]" italic="false" opaque="false" readonly="true" size="12" subscript="false" superscript="false" underline="false" placeholder="false"/>
<Font name="2D Input" background="[255,255,255]" bold="false" executable="true" family="Times New Roman" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="false" placeholder="false"/>
<Font name="Header and Footer" background="[255,255,255]" bold="false" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="10" subscript="false" superscript="false" underline="false" placeholder="false"/>
<Font name="Error" background="[255,255,255]" bold="false" executable="false" family="Monospaced" foreground="[255,0,255]" italic="false" opaque="false" readonly="true" size="12" subscript="false" superscript="false" underline="false" placeholder="false"/>
<Font name="Title" background="[255,255,255]" bold="true" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="18" subscript="false" superscript="false" underline="false" placeholder="false"/>
<Font name="Heading 1" background="[255,255,255]" bold="true" executable="false" family="Serif" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="18" subscript="false" superscript="false" underline="false" placeholder="false"/>
<Font name="Text" background="[255,255,255]" bold="false" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="false" placeholder="false"/>
<Font name="Bullet Item" background="[255,255,255]" bold="false" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="false" placeholder="false"/>
<Font name="Equation Label" background="[255,255,255]" bold="true" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="false" placeholder="false"/>
<Font name="Heading 4" background="[255,255,255]" bold="false" executable="false" family="Serif" foreground="[0,0,0]" italic="true" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="false" placeholder="false"/>
<Font name="Heading 3" background="[255,255,255]" bold="true" executable="false" family="Serif" foreground="[0,0,0]" italic="true" opaque="false" readonly="false" size="14" subscript="false" superscript="false" underline="false" placeholder="false"/>
<Font name="Heading 2" background="[255,255,255]" bold="true" executable="false" family="Serif" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="16" subscript="false" superscript="false" underline="false" placeholder="false"/>
<Font name="Dictionary Hyperlink" background="[255,255,255]" bold="false" executable="false" family="Serif" foreground="[147,0,15]" italic="false" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="true" placeholder="false"/>
<Font name="List Item" background="[255,255,255]" bold="false" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="false" placeholder="false"/>
<Layout name="Maple Output" alignment="centred" bullet="none" firstindent="0" leftmargin="0" rightmargin="0" linespacing="0.3" spaceabove="0" spacebelow="0" linebreak="space" pagebreak-before="false" initial="0" bulletsuffix=""/>
<Layout name="Ordered List 1" alignment="left" bullet="numeric" firstindent="0" leftmargin="0" rightmargin="0" linespacing="0.0" spaceabove="3" spacebelow="3" linebreak="space" pagebreak-before="false" initial="-1" bulletsuffix=""/>
<Layout name="Dash Item" alignment="left" bullet="dash" firstindent="0" leftmargin="0" rightmargin="0" linespacing="0.0" spaceabove="3" spacebelow="3" linebreak="space" pagebreak-before="false" initial="0" bulletsuffix=""/>
<Layout name="Ordered List 2" alignment="left" bullet="alphabetic" firstindent="0" leftmargin="36" rightmargin="0" linespacing="0.0" spaceabove="3" spacebelow="3" linebreak="space" pagebreak-before="false" initial="-1" bulletsuffix=""/>
<Layout name="Ordered List 3" alignment="left" bullet="roman" firstindent="0" leftmargin="72" rightmargin="0" linespacing="0.0" spaceabove="3" spacebelow="3" linebreak="space" pagebreak-before="false" initial="-1" bulletsuffix=""/>
<Layout name="Ordered List 4" alignment="left" bullet="ALPHABETIC" firstindent="0" leftmargin="108" rightmargin="0" linespacing="0.0" spaceabove="3" spacebelow="3" linebreak="space" pagebreak-before="false" initial="-1" bulletsuffix=""/>
<Layout name="Ordered List 5" alignment="left" bullet="ROMAN" firstindent="0" leftmargin="144" rightmargin="0" linespacing="0.0" spaceabove="3" spacebelow="3" linebreak="space" pagebreak-before="false" initial="-1" bulletsuffix=""/>
<Layout name="Author" alignment="centred" bullet="none" firstindent="0" leftmargin="0" rightmargin="0" linespacing="0.0" spaceabove="8" spacebelow="8" linebreak="space" pagebreak-before="false" initial="0" bulletsuffix=""/>
<Layout name="Warning" alignment="left" bullet="none" firstindent="0" leftmargin="0" rightmargin="0" linespacing="0.0" spaceabove="0" spacebelow="0" linebreak="space" pagebreak-before="false" initial="0" bulletsuffix=""/>
<Layout name="Annotation Title" alignment="centred" bullet="none" firstindent="0" leftmargin="0" rightmargin="0" linespacing="0.0" spaceabove="12" spacebelow="12" linebreak="space" pagebreak-before="false" initial="0" bulletsuffix=""/>
<Layout name="Maple Plot" alignment="centred" bullet="none" firstindent="0" leftmargin="0" rightmargin="0" linespacing="0.0" spaceabove="0" spacebelow="0" linebreak="space" pagebreak-before="false" initial="0" bulletsuffix=""/>
<Layout name="Error" alignment="left" bullet="none" firstindent="0" leftmargin="0" rightmargin="0" linespacing="0.0" spaceabove="0" spacebelow="0" linebreak="space" pagebreak-before="false" initial="0" bulletsuffix=""/>
<Layout name="Title" alignment="centred" bullet="none" firstindent="0" leftmargin="0" rightmargin="0" linespacing="0.0" spaceabove="12" spacebelow="12" linebreak="space" pagebreak-before="false" initial="0" bulletsuffix=""/>
<Layout name="Line Printed Output" alignment="left" bullet="none" firstindent="0" leftmargin="0" rightmargin="0" linespacing="0.0" spaceabove="0" spacebelow="0" linebreak="any" pagebreak-before="false" initial="0" bulletsuffix=""/>
<Layout name="Heading 1" alignment="left" bullet="none" firstindent="0" leftmargin="0" rightmargin="0" linespacing="0.0" spaceabove="8" spacebelow="4" linebreak="space" pagebreak-before="false" initial="0" bulletsuffix=""/>
<Layout name="Diagnostic" alignment="left" bullet="none" firstindent="0" leftmargin="0" rightmargin="0" linespacing="0.0" spaceabove="0" spacebelow="0" linebreak="any" pagebreak-before="false" initial="0" bulletsuffix=""/>
<Layout name="Text Output" alignment="left" bullet="none" firstindent="0" leftmargin="0" rightmargin="0" linespacing="0.0" spaceabove="0" spacebelow="0" linebreak="newline" pagebreak-before="false" initial="0" bulletsuffix=""/>
<Layout name="Bullet Item" alignment="left" bullet="dot" firstindent="0" leftmargin="0" rightmargin="0" linespacing="0.0" spaceabove="3" spacebelow="3" linebreak="space" pagebreak-before="false" initial="0" bulletsuffix=""/>
<Layout name="Heading 4" alignment="left" bullet="none" firstindent="0" leftmargin="0" rightmargin="0" linespacing="0.0" spaceabove="0" spacebelow="0" linebreak="space" pagebreak-before="false" initial="0" bulletsuffix=""/>
<Layout name="Normal" alignment="left" bullet="none" firstindent="0" leftmargin="0" rightmargin="0" linespacing="0.0" spaceabove="0" spacebelow="0" linebreak="space" pagebreak-before="false" initial="0" bulletsuffix=""/>
<Layout name="Heading 3" alignment="left" bullet="none" firstindent="0" leftmargin="0" rightmargin="0" linespacing="0.0" spaceabove="0" spacebelow="0" linebreak="space" pagebreak-before="false" initial="0" bulletsuffix=""/>
<Layout name="Heading 2" alignment="left" bullet="none" firstindent="0" leftmargin="0" rightmargin="0" linespacing="0.0" spaceabove="8" spacebelow="2" linebreak="space" pagebreak-before="false" initial="0" bulletsuffix=""/>
<Layout name="List Item" alignment="left" bullet="indent" firstindent="0" leftmargin="0" rightmargin="0" linespacing="0.0" spaceabove="3" spacebelow="3" linebreak="space" pagebreak-before="false" initial="0" bulletsuffix=""/>
<Pencil-style name="Pencil 5" pen-color="[255,0,0]" pen-height="5.0" pen-width="5.0" pen-opacity="1.0"/>
<Pencil-style name="Pencil 4" pen-color="[0,0,255]" pen-height="3.0" pen-width="3.0" pen-opacity="1.0"/>
<Pencil-style name="Pencil 3" pen-color="[0,0,0]" pen-height="3.0" pen-width="3.0" pen-opacity="1.0"/>
<Pencil-style name="Pencil 2" pen-color="[0,0,255]" pen-height="1.0" pen-width="1.0" pen-opacity="1.0"/>
<Pencil-style name="Pencil 1" pen-color="[0,0,0]" pen-height="1.0" pen-width="1.0" pen-opacity="1.0"/>
<Highlighter-style name="Highlighter 2" pen-color="[255,204,0]" pen-height="14.0" pen-width="14.0" pen-opacity="0.8"/>
<Highlighter-style name="Highlighter 1" pen-color="[255,153,255]" pen-height="12.0" pen-width="8.0" pen-opacity="0.8"/>
<Highlighter-style name="Highlighter 4" pen-color="[0,255,255]" pen-height="32.0" pen-width="32.0" pen-opacity="0.8"/>
<Highlighter-style name="Highlighter 3" pen-color="[51,255,0]" pen-height="24.0" pen-width="24.0" pen-opacity="0.8"/>
<Highlighter-style name="Highlighter 5" pen-color="[255,255,0]" pen-height="48.0" pen-width="48.0" pen-opacity="0.8"/>
</Styles>
<Task-table>
    <Task-category name="&lt;default&gt;">
    </Task-category>
</Task-table>
<Task>
</Task>
<Group labelreference="L82" drawlabel="true">
<Input>
<Text-field style="Text" layout="Normal">Jennifer King &amp; Michael Ruffino</Text-field>
<Text-field style="Text" layout="Normal">Related Rates: Distance Between Two Cars</Text-field>
<Text-field style="Text" layout="Normal">And remember Aggies... Please do not drink and derive.</Text-field>
</Input>
</Group>
<Group labelreference="L75" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">restart:</Text-field>
</Input>
</Group>
<Group labelreference="L77" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">with(Maplets[Tools]): with(Maplets[Elements]):
StartEngine();</Text-field>
</Input>
</Group>
<Group labelreference="L69" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">randomize():</Text-field>
</Input>
</Group>
<Group labelreference="L76" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">lightorange:=&quot;#FFB300&quot;:
lightcyan:=&quot;#DDFFFF&quot;:
brightgreen:=&quot;#00FF00&quot;:
brightyellow:=&quot;#FFFF00&quot;:
prettyred:=&quot;#FF0000&quot;:
prettypink:=&quot;#FF007F&quot;:
neworange:=&quot;#FF8000&quot;:</Text-field>
</Input>
</Group>
<Group labelreference="L89" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">ColorFooter:=lightcyan:
FontFooter:=Font(&quot;helvetica&quot;,10):</Text-field>
</Input>
</Group>
<Group labelreference="L83" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">randASTART:=rand(-4..4):
randBSTART:=rand(-4..4):
randASPEED:=rand(1..5):</Text-field>
</Input>
</Group>
<Group labelreference="L88" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">randBSPEED:=rand(1..5):
randTIME:=rand(1..5):</Text-field>
</Input>
</Group>
<Group labelreference="L84" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">ask:=proc()
global _ASTART, _BSTART, _ASPEED, _BSPEED, _TIME, _A, _DIS, _B, _D, _ROC, _R, CarsPlot;
_BSTART:=randBSTART();
_ASTART:=randASTART();
_ASPEED:=randASPEED();
_BSPEED:=randBSPEED();
_TIME:=randTIME();
Set(starta=_ASTART);
Set(startb=_BSTART);
Set(speeda=abs(_ASPEED));
Set(speedb=abs(_BSPEED));
Set(time=_TIME);
Set(Aans=&quot;&quot;);
Set(Bans=&quot;&quot;);
Set(Dans=&quot;&quot;);
Set(ROCans=&quot;&quot;);
_B:=_BSTART+_BSPEED*_TIME;
_A:=_ASTART+_ASPEED*_TIME;
_D:=sqrt((_A)^2+(_B)^2);
_R:=(_A*_ASPEED+_B*_BSPEED)/_D;
Set(reply=&quot;&quot;);
CarsPlot:=plot([[_A,0],[0,_B]],x=-1..25,y=-1..25,color=blue);
Set(PCars=CarsPlot);
end proc:</Text-field>
</Input>
</Group>
<Group labelreference="L78" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal"></Text-field>
</Input>
</Group>
<Group labelreference="L80" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">check_BSPEED:=proc()
global _BSPEED;
local userb;
userb:=Get(Bans::realcons):
#print(userb-_B&lt;.001*_B);
#print(evalf(abs(userb-_B)&lt;.01*abs(_B)));
if evalf(abs(userb-_B)&lt;.01*_B) then
  Set(reply=&quot;Yes! Brilliant!!!&quot;)
else
  Set(reply=&quot;Ouch. Fail.&quot;)
end if;
end proc:</Text-field>
</Input>
</Group>
<Group labelreference="L81" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">show_BSPEED:=proc()
global _BSPEED;
Set(Bans=_B);
Set(reply=&quot;Way to be a 2% er.&quot;)
end proc:</Text-field>
</Input>
</Group>
<Group labelreference="L73" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">hint_BSPEED:=proc()
Set(reply=&quot;Velocity, time, and initial position are given.&quot;)
end proc:</Text-field>
</Input>
</Group>
<Group labelreference="L72" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal"></Text-field>
</Input>
</Group>
<Group labelreference="L63" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">check_ASPEED:=proc()
global _ASPEED;
local userdb;
userdb:=Get(Aans::realcons):
if evalf(abs(userdb-_A)&lt;.001*_A) then
  Set(reply=&quot;Whoop! Way to go!&quot;)
else
  Set(reply=&quot;Dang it... try again.&quot;)
end if;
end proc:</Text-field>
</Input>
</Group>
<Group labelreference="L65" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">show_ASPEED:=proc()
global _ASPEED;
Set(Aans=_A):
Set(reply=&quot;Use that muscle between your ears.&quot;)
end proc:</Text-field>
</Input>
</Group>
<Group labelreference="L61" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">hint_ASPEED:=proc()
Set(reply=&quot;Velocity, time, and initial position are given.&quot;)
end proc:</Text-field>
</Input>
</Group>
<Group labelreference="L90" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal"></Text-field>
</Input>
</Group>
<Group labelreference="L60" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">check_DIS:=proc()
global _DIS;
local userd;
userd:=Get(Dans::realcons):
#print(userd-_D&lt;.001*_D);
#print(evalf(abs(userd-_D)&lt;.01*abs(_D)));
if evalf(abs(userd-_D)&lt;.01*_D) then
  Set(reply=&quot;Wow! You're rockin my socks off!!&quot;)
else
  Set(reply=&quot;Ooo Burn.. or burnt orange. Sorry.&quot;)
end if;
end proc:</Text-field>
</Input>
</Group>
<Group labelreference="L62" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">show_DIS:=proc()
global _DIS;
Set(Dans=_D);
Set(reply=&quot;Way to be a slacker...&quot;)
end proc:</Text-field>
</Input>
</Group>
<Group labelreference="L68" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">hint_DIS:=proc()
Set(reply=&quot;Remember that old Pythagoras guy??..&quot;)
end proc:</Text-field>
</Input>
</Group>
<Group labelreference="L91" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal"></Text-field>
</Input>
</Group>
<Group labelreference="L85" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">check_ROC:=proc()
global _ROC;
local userf;
userf:=Get(ROCans::realcons):
#print(userf-_R&lt;.001*_R);
#print(evalf(abs(userf-_R)&lt;.01*abs(_R)));
if evalf(abs(userf-_R)&lt;.01*_R) then
  Set(reply=&quot;OH SNAP!!&quot;)
else
  Set(reply=&quot;Sorry, but no.&quot;)
end if;
end proc:</Text-field>
</Input>
</Group>
<Group labelreference="L66" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">show_ROC:=proc()
global _ROC;
Set(ROCans=evalf(_R));
Set(reply=&quot;Man.. that took some effort... NOT.&quot;)
end proc:</Text-field>
</Input>
</Group>
<Group labelreference="L64" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">hint_ROC:=proc()
Set(reply=&quot;Differentiate the equation for Question 3.&quot;)
end proc:</Text-field>
</Input>
</Group>
<Group labelreference="L59" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal"></Text-field>
</Input>
</Group>
<Group labelreference="L71" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">CARS:=Maplet(onstartup=RunWindow(MAIN),
Window[MAIN](title=&quot;Related Rates: Distance Between Cars&quot;,
[ halign=none, valign=none, inset=0, spacing=0,
  [ halign=none,
    Button(&quot;New Problem&quot;, Evaluate(function=&quot;ask&quot;), background=magenta),
    HorizontalGlue(),
    Button(&quot;Quit&quot;,Shutdown(), background=prettypink)
  ],
  [ halign=none, inset=0, spacing=0,
    [ halign=none, valign=none, inset=0,
      BoxColumn( valign=none, inset=0, spacing=0, border=true,
        caption=&quot;Problem Statement&quot;,
        [ halign=none,
          &quot;Two cars, A and B, are moving perpendicularly from each other. Car A starts at&quot;,
          TextField[starta](width=3, editable=false, background=white),
          &quot;miles from the origin &quot;,           
          HorizontalGlue()
        ],
        [ halign=none,
          &quot;going&quot;,
          TextField[speeda](width=3, editable=false, background=white),
          &quot;mph in the x direction. Car B starts at&quot;,
          TextField[startb](width=3, editable=false, background=white),
          &quot;miles from the origin and goes&quot;,
          TextField[speedb](width=3, editable=false, background=white),
          &quot;mph in the &quot;,
          HorizontalGlue()
        ],
        [ halign=none,
          &quot;y direction. Find the rate that the straight line distance between the two cars is changing after&quot;,
          TextField[time](width=3, editable=false, background=white),
          &quot;hours.&quot;,
          HorizontalGlue()
        ]
      ),
      [ halign=none, border=true,
        caption=&quot;Find where Car A is along the x axis after this time.&quot;,
        Label(&quot;Car A is &quot;),
        TextField[Aans](width=10, background=white),
        &quot;miles away from the origin&quot;,
        HorizontalGlue(),
        Button(&quot;Hint&quot;, Evaluate(function=&quot;hint_ASPEED&quot;), background=brightyellow),
        Button(&quot;Check IT!&quot;, Evaluate(function=&quot;check_ASPEED&quot;), background=brightgreen),
        Button(&quot;Show&quot;, Evaluate(function=&quot;show_ASPEED&quot;), background=prettyred)
      ],
      [ halign=none, border=true,
        caption=&quot;Find where Car B is along the y axis after this time.&quot;,
        Label(&quot;Car B is &quot;),
        TextField[Bans](width=10, background=white),
        &quot;miles away from the origin&quot;,
        HorizontalGlue(),
        Button(&quot;Hint&quot;, Evaluate(function=&quot;hint_BSPEED&quot;), background=brightyellow),
        Button(&quot;Check IT!&quot;, Evaluate(function=&quot;check_BSPEED&quot;), background=brightgreen),
        Button(&quot;Show&quot;, Evaluate(function=&quot;show_BSPEED&quot;), background=prettyred)
      ],
      [ halign=none, border=true,
        caption=&quot;What is the straight line distance between the two cars at this time?&quot;,
        Label(&quot;Distance =&quot;),
        TextField[Dans](width=10, background=white),
        &quot;miles long&quot;,
        HorizontalGlue(),
        Button(&quot;Hint&quot;, Evaluate(function=&quot;hint_DIS&quot;), background=brightyellow),
        Button(&quot;Check IT!&quot;, Evaluate(function=&quot;check_DIS&quot;), background=brightgreen),
        Button(&quot;Show&quot;, Evaluate(function=&quot;show_DIS&quot;), background=prettyred)
      ],
      [ halign=none, border=true,
        caption=&quot;What is the rate that this distance is changing at this time? (Round to thousandths)&quot;,
        Label(&quot;Rate of Change =&quot;),
        TextField[ROCans](width=10, background=white),
        &quot;miles per hour&quot;,
        HorizontalGlue(),
        Button(&quot;Hint&quot;, Evaluate(function=&quot;hint_ROC&quot;), background=brightyellow),
        Button(&quot;Check IT!&quot;, Evaluate(function=&quot;check_ROC&quot;), background=brightgreen),
        Button(&quot;Show&quot;, Evaluate(function=&quot;show_ROC&quot;), background=prettyred)
      ]
    ],
    [ halign=none, valign=none, border=true,
      caption=&quot;Cars as Points&quot;,   
      [ Plotter[PCars](&quot;&quot;, width=250, height=250)
      ]
    ]
  ],
  [ TextField[reply](width=40)
  ],
  [ halign=none, background=ColorFooter,
    Label(&quot;Programmers: Jennifer King &amp; Michael Ruffino&quot;, font=FontFooter),
    HorizontalGlue(),
    Label(&quot;Copyright: P. Yasskin 2008&quot;, font=FontFooter)
  ]
]    
)
):</Text-field>
</Input>
</Group>
<Group labelreference="L70" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">Maplets[Display]( CARS );</Text-field>
</Input>
</Group>
<Group labelreference="L92" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal"></Text-field>
</Input>
</Group>
</Worksheet>
