<?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="L114" drawlabel="true">
<Input>
<Text-field style="Text" layout="Normal">Michael Cook &amp; Rachel Glenn</Text-field>
<Text-field style="Text" layout="Normal">Maximum and Minimum Area Enclosed by Two Wire Shapes</Text-field>
<Text-field style="Text" layout="Normal">Math 152 - Section 201</Text-field>
</Input>
</Group>
<Group labelreference="L116" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">restart:</Text-field>
</Input>
</Group>
<Group labelreference="L115" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">with(Maplets[Tools]): with(Maplets[Elements]): with(plots): with(plottools):
StartEngine();</Text-field>
</Input>
</Group>
<Group labelreference="L123" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">randomize():</Text-field>
</Input>
</Group>
<Group labelreference="L121" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">lightorange:=&quot;#FFB300&quot;:
lightcyan:=&quot;#DDFFFF&quot;:</Text-field>
</Input>
</Group>
<Group labelreference="L182" 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="L122" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">randL:=rand(2..20):</Text-field>
</Input>
</Group>
<Group labelreference="L147" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">randshape:=rand(1..3):</Text-field>
</Input>
</Group>
<Group labelreference="L148" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">shapes:=[&quot;Circle&quot;,&quot;Square&quot;,&quot;Equilaterial Triangle&quot;]:</Text-field>
</Input>
</Group>
<Group labelreference="L1" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal"></Text-field>
</Input>
</Group>
<Group labelreference="L117" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">problem:=proc()
global TArea,DArea,MaxiArea,MinArea,Maxx,Minx,sh1,sh2,a1,a2;
local areat, areac, areasq, L, areas, areat2, areac2, areasq2, areas2, xsol, TAsol, TA0, TAL, n1,n2;
L:=randL();
areat:=(3^(1/2)/4)*(x/3)^2;
areac:=(x^2)/(4*Pi);
areasq:=(x/4)^2;
areat2:=(3^(1/2)/4)*((L-x)/3)^2;
areac2:=((L-x)^2)/(4*Pi);
areasq2:=((L-x)/4)^2;
areas:=[areac,areasq,areat];
areas2:=[areac2,areasq2,areat2];
n1:=randshape();
n2:=randshape();
sh1:=shapes[n1];
sh2:=shapes[n2];
a1:=areas[n1];
a2:=areas2[n2];
Set(probstate(caption)=sprintf(&quot;One piece of length x is bent into a %s and the other piece is bent into a %s.&quot;, sh1, sh2));
TArea:=a1+a2;
DArea:=diff(TArea,x);
xsol:=solve(DArea=0,x);
TAsol:=eval(TArea,x=xsol);
TA0:=eval(TArea,x=0);
TAL:=eval(TArea,x=L);
MaxiArea:=max(TAsol,TA0,TAL);
MinArea:=min(TAsol,TA0,TAL);
if TAsol=MaxiArea then Maxx:=xsol end if;
if TA0=MaxiArea then Maxx:=0 end if;
if TAL=MaxiArea then Maxx:=L end if;
if TAsol=MinArea then Minx:=xsol end if;
if TA0=MinArea then Minx:=0 end if;
if TAL=MinArea then Minx:=L end if;
Set(TFlength=L);
Set(TFTArea=&quot;&quot;);
Set(TFDArea=&quot;&quot;);
Set(TFMaxx=&quot;&quot;);
Set(TFMaxiArea=&quot;&quot;);
Set(TFMinx=&quot;&quot;);
Set(TFMinArea=&quot;&quot;);
end proc:</Text-field>
</Input>
</Group>
<Group labelreference="L119" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal"></Text-field>
</Input>
</Group>
<Group labelreference="L152" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">hint1:=proc()
Set(reply=&quot;Express each area in terms of its perimeter. Add areas of the shapes.&quot;):
end proc:</Text-field>
</Input>
</Group>
<Group labelreference="L153" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">check1:=proc()
global TArea;
local user_area;
if Get(TFTArea)=&quot;&quot; then
  Set(reply=&quot;No answer given.&quot;);
  return;
end if;
user_area:=Get(TFTArea::anything):
if simplify(TArea - user_area)=0 then
  Set(reply=&quot;Awesome job, Keep going.&quot;):
else
  Set(reply=&quot;Looks like you need to go to Tech.&quot;):
end if;
end proc:</Text-field>
</Input>
</Group>
<Group labelreference="L151" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">show1:=proc()
global TArea;
Set(TFTArea=TArea):
end proc:</Text-field>
</Input>
</Group>
<Group labelreference="L126" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal"></Text-field>
</Input>
</Group>
<Group labelreference="L165" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">hint2:=proc()
Set(reply=&quot;Find the Derivative.&quot;):
end proc:</Text-field>
</Input>
</Group>
<Group labelreference="L166" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">check2:=proc()
global DArea;
local user_darea;
if Get(TFDArea)=&quot;&quot; then
  Set(reply=&quot;No answer given.&quot;);
  return;
end if;
user_darea:=Get(TFDArea::anything):
if simplify(DArea - user_darea)=0 then
  Set(reply=&quot;Keep it up.&quot;):
else
  Set(reply=&quot;How does Austin sound?.&quot;):
end if;
end proc:</Text-field>
</Input>
</Group>
<Group labelreference="L167" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">show2:=proc()
Set(TFDArea=DArea):
end proc:</Text-field>
</Input>
</Group>
<Group labelreference="L155" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal"></Text-field>
</Input>
</Group>
<Group labelreference="L170" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">hint3x:=proc()
Set(reply=&quot;Check the endpoints of the function.&quot;):
end proc:</Text-field>
</Input>
</Group>
<Group labelreference="L168" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">check3x:=proc()
global Maxx;
local user_maxx;
if Get(TFMaxx)=&quot;&quot;then
  Set(reply=&quot;No answer given.&quot;);
  return;
end if;
user_maxx:=Get(TFMaxx::anything):
if simplify(Maxx - user_maxx=0) then
  Set(reply=&quot;Way to go.&quot;):
else
  Set(reply=&quot;Sad Day.&quot;):
end if;
end proc:</Text-field>
</Input>
</Group>
<Group labelreference="L169" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">show3x:=proc()
global Maxx;
Set(TFMaxx=Maxx):
end proc:</Text-field>
</Input>
</Group>
<Group labelreference="L178" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal"></Text-field>
</Input>
</Group>
<Group labelreference="L176" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">hint3a:=proc()
Set(reply=&quot;Check the endpoints of the function.&quot;):
end proc:</Text-field>
</Input>
</Group>
<Group labelreference="L177" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">check3a:=proc()
global MaxiArea;
local user_maxiarea;
if Get(TFMaxiArea)=&quot;&quot;then
  Set(reply=&quot;No answer given.&quot;);
  return;
end if;
user_maxiarea:=Get(TFMaxiArea::anything):
if simplify(MaxiArea - user_maxiarea=0) then
  Set(reply=&quot;Sweetness.&quot;):
else
  Set(reply=&quot;:(.&quot;):
end if;
end proc:</Text-field>
</Input>
</Group>
<Group labelreference="L175" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">show3a:=proc()
global MaxiArea;
Set(TFMaxiArea=MaxiArea):
end proc:</Text-field>
</Input>
</Group>
<Group labelreference="L159" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal"></Text-field>
</Input>
</Group>
<Group labelreference="L173" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">hint4x:=proc()
Set(reply=&quot;Check the endpoints of the function.&quot;):
end proc:</Text-field>
</Input>
</Group>
<Group labelreference="L171" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">check4x:=proc()
global Minx;
local user_minx;
if Get(TFMinx)=&quot;&quot; then
  Set(reply=&quot;No answer given.&quot;);
  return;
end if;
user_minx:=Get(TFMinx::anything):
if simplify(Minx - user_minx=0) then
  Set(reply=&quot;Amazing.&quot;):
else
  Set(reply=&quot;Almost at the end, just keep trying.&quot;):
end if;
end proc:</Text-field>
</Input>
</Group>
<Group labelreference="L172" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">show4x:=proc()
global Minx;
Set(TFMinx=Minx):
end proc:</Text-field>
</Input>
</Group>
<Group labelreference="L161" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal"></Text-field>
</Input>
</Group>
<Group labelreference="L180" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">hint4a:=proc()
Set(reply=&quot;Check the endpoints of the function.&quot;):
end proc:</Text-field>
</Input>
</Group>
<Group labelreference="L179" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">check4a:=proc()
global MinArea;
local user_minarea;
if Get(TFMinArea)=&quot;&quot; then
  Set(reply=&quot;No answer given.&quot;);
  return;
end if;
user_minarea:=Get(TFMinArea::anything):
if simplify(MinArea - user_minarea=0) then
  Set(reply=&quot;Superb, Now try another problem.&quot;):
else
  Set(reply=&quot;Not there yet.&quot;):
end if;
end proc:</Text-field>
</Input>
</Group>
<Group labelreference="L181" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">show4a:=proc()
global MinArea;
Set(TFMinArea=MinArea):
end proc:</Text-field>
</Input>
</Group>
<Group labelreference="L142" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal"></Text-field>
</Input>
</Group>
<Group labelreference="L144" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">WireShapes:=Maplet(onstartup=RunWindow(MAIN),
Font[helv10](&quot;helvetica&quot;,10),
Window[MAIN](title=&quot;Maximum and Minimum Area Enclosed by Two Wire Shapes&quot;,
[ halign=none,
  [ Button(&quot;New Problem&quot;, Evaluate(function=problem), background=magenta),
    HorizontalGlue(),
    Button(&quot;Quit&quot;, Shutdown(), background=pink)
  ],
  BoxColumn( halign=none, border=true,
    [ inset=0,
      &quot;A wire of length&quot;,
      TextField[TFlength](width=6, editable=false, background=white),
      &quot;m is cut into two pieces.&quot;,
      HorizontalGlue()
    ],
    [ inset=0,
      Label[probstate](&quot;One piece of length x is bent into a ............... and the other piece is bent into a ............... .&quot;),
      HorizontalGlue()
    ],
    [ inset=0,
      &quot;How should the wire be cut so that the total area enlcosed is a) maximum? b) minimum?&quot;,
      HorizontalGlue()
    ]
  ),
  [ border=true,
    caption=&quot;Enter the Formula for the Total Area of the two shapes:&quot;, 
    &quot;A =&quot;,
    TextField[TFTArea](width=25, background=turquoise),
    HorizontalGlue(),
    Button(&quot;Hint&quot;, Evaluate(function=&quot;hint1&quot;), background=lightorange),
    Button(&quot;Check&quot;, Evaluate(function=&quot;check1&quot;), background=green),
    Button(&quot;Show&quot;, Evaluate(function=&quot;show1&quot;), background=lightorange)
  ],
  [ border=true,
    caption=&quot;Enter the Formula for the Derivative of the Total Area:&quot;, 
    &quot;A' =&quot;,
    TextField[TFDArea](width=25, background=turquoise),
    HorizontalGlue(),
    Button(&quot;Hint&quot;, Evaluate(function=&quot;hint2&quot;), background=lightorange),
    Button(&quot;Check&quot;, Evaluate(function=&quot;check2&quot;), background=green),
    Button(&quot;Show&quot;, Evaluate(function=&quot;show2&quot;), background=lightorange)
  ],
  BoxColumn( border=true,
    caption=&quot;Find the x which Maximizes the Area and the Maximum Area:&quot;,
    [ inset=0,
      &quot;x =&quot;,
      TextField[TFMaxx](width=4, background=turquoise),
      &quot;cm&quot;,
      HorizontalGlue(),
      Button(&quot;Hint&quot;, Evaluate(function=&quot;hint3x&quot;), background=lightorange),
      Button(&quot;Check&quot;, Evaluate(function=&quot;check3x&quot;), background=green),
      Button(&quot;Show&quot;, Evaluate(function=&quot;show3x&quot;), background=lightorange)
    ],
    [ inset=0,
      &quot;A =&quot;,
      TextField[TFMaxiArea](width=15, background=turquoise),
      &quot;cm^2&quot;,
      HorizontalGlue(),
      Button(&quot;Hint&quot;, Evaluate(function=&quot;hint3a&quot;), background=lightorange),
      Button(&quot;Check&quot;, Evaluate(function=&quot;check3a&quot;), background=green),
      Button(&quot;Show&quot;, Evaluate(function=&quot;show3a&quot;), background=lightorange)
    ]
  ),
  BoxColumn( border=true,
    caption=&quot;Find the x which Minimzes the Area and the Minimum Area:&quot;,
    [ inset=0,
      &quot;x =&quot;,
      TextField[TFMinx](width=20, background=turquoise),
      &quot;cm&quot;,
      HorizontalGlue(),
      Button(&quot;Hint&quot;, Evaluate(function=&quot;hint4x&quot;), background=lightorange),
      Button(&quot;Check&quot;, Evaluate(function=&quot;check4x&quot;), background=green),
      Button(&quot;Show&quot;, Evaluate(function=&quot;show4x&quot;), background=lightorange)
    ],
    [ inset=0,
      &quot;A =&quot;,
      TextField[TFMinArea](width=30, background=turquoise),
      &quot;cm^2&quot;,
      HorizontalGlue(),
      Button(&quot;Hint&quot;, Evaluate(function=&quot;hint4a&quot;), background=lightorange),
      Button(&quot;Check&quot;, Evaluate(function=&quot;check4a&quot;), background=green),
      Button(&quot;Show&quot;, Evaluate(function=&quot;show4a&quot;), background=lightorange)
    ]
  ),
  [ TextField[reply](width=55, editable=false, background=white)
  ],
  [ halign=none, background=ColorFooter,
    Label(&quot;Programmers: Michael Cook &amp; Rachel Glenn&quot;, font=FontFooter),
    HorizontalGlue(),
    Label(&quot;Copyright: P. Yasskin 2008&quot;, font=FontFooter)
  ]
]
)):</Text-field>
</Input>
</Group>
<Group labelreference="L145" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" alignment="left" firstindent="0" spacebelow="0" leftmargin="0" linespacing="0.0" initial="0" linebreak="space" rightmargin="0" bulletsuffix="" spaceabove="0" bullet="none" pagebreak-before="false">Maplets[Display]( WireShapes );</Text-field>
</Input>
</Group>
<Group labelreference="L183" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal"></Text-field>
</Input>
</Group>
</Worksheet>
