<?xml version="1.0"?>
<!DOCTYPE activity SYSTEM "escot.dtd" >
<activity name="Week 2" size="550,540" escotVersion="1.2.14" puzzle_id="24">
  <page name="Introduction">
    <component class="org.escot.demo.HTMLViewer" position="5,5" size="517,350" visible="true" portid="HTMLViewer-1">
      <![CDATA[<HTML>
<BODY>

<h3>Looking at the relation between radii and areas</h3>
<B><P>Make a Prediction.</p></b>
<p>This week we will investigate the relation between the radius and area of circles. We will do this using another simulation. In this simulation, we have two concentric circles.  The inner circle has a radius of 7 feet and the outer circle has a radius equal to twice the radius of the inner circle, or 14 feet. Points will be generated randomly anywhere in the two circles. Which of the following choices do you think best estimates the percent of points that will be in the inner circle?</P>
1. 25%<BR>
2. 50%<BR>
3. 75%<BR>
4. 95%<BR>

<P>Now think about any two concentric circles where you can change the radius of the inner circle and the outer circle will adjust so that it always has a radius that is double the size of the inner circle. For example, if you change the radius of the inner circle to 5, the outer circle will change to a radius of 10. If you change the radius of the inner and outer circles in this way, will the percentage of points falling in the inner circle change?</P>

</BODY>
</HTML>]]>
    </component>
    <component class="org.escot.demo.TextEditor" position="6,368" size="514,109" visible="true" answerText="true" portid="TextEditor-1">
      <![CDATA[Please record your predictions:

1.  The percentage of the randomly generated points will fall in the inner circle is ....... because .......

2. If you change the radius of the inner and outer circles in this way, the percentage of points falling in the inner circle (will/will not) change because......]]>
      <property name="foreground" value="0,0,0"/>
      <property name="background" value="255,255,255"/>
      <property name="font" value="Dialog,Dialog,0,12"/>
    </component>
  </page>
  <page name="Activity Page">
    <component class="edu.colorado.agentsheets.AgentSheetsWrapper" position="315,5" size="268,250" visible="true" portid="AgentSheetsWrapper-1">
      <property name="classname" value="pimachine_week2"/>
      <property name="XMLPropertysheet" value="pim2.sip"/>
      <property name="XMLWorksheet" value="week2.ws"/>
    </component>
    <component class="virtuoso.logo.LogoScript" position="375,599" size="28,17" visible="true" portid="LogoScript-1">
    
      <export name="Inner Radius" type="number">7.0</export>
      <export name="Total Points" type="number">100.0</export>
      <export name="In InnerCircle" type="number">0.0</export>
      <export name="In OuterCircle" type="number">0.0</export>
      <export name="%(Inner)" type="number">0.0</export>
      <export name="%(Outer)" type="number">0.0</export>
      
      <![CDATA[]]>
      <property name="toolBarShowing" value="false"/>
    </component>
    <component class="org.escot.demo.SimpleNumberTable" position="10,321" size="475,84" visible="true" portid="SimpleNumberTable-1">
      <customProperty name="models" value="Inner Radius,Total Points,In InnerCircle,In OuterCircle,%(Inner),%(Outer)"/>
      <property name="maximumFractionDigits" value="2"/>
      <property name="font" value="Dialog,Dialog,0,12"/>
      <property name="minimumFractionDigits" value="0"/>
      <property name="orientation" value="1"/>
      <property name="live" value="false"/>
    </component>
    <component class="com.sri.escot.NumberEntry" position="306,289" size="136,21" visible="true" portid="NumberEntry-1">
      <property name="value" value="100.0"/>
      <property name="minimumDecimalPlaces" value="0"/>
      <property name="allowNegative" value="true"/>
      <property name="editable" value="true"/>
      <property name="maximumDecimalPlaces" value="3"/>
      <property name="label" value="Total Points:"/>
      <property name="suffix" value=""/>
    </component>
    <component class="org.escot.demo.ButtonPanel" position="498,344" size="85,34" visible="true" portid="ButtonPanel-1">
      <property name="font" value="Dialog,Dialog,0,12"/>
    </component>
    <component class="com.sri.escot.EscotSwingSlider" position="381,257" size="199,27" visible="true" portid="EscotSwingSlider-1">
      <property name="scaleFactor" value="1.0"/>
      <property name="value" value="7"/>
      <property name="orientation" value="0"/>
      <property name="snapToTicks" value="true"/>
      <property name="maximumValue" value="10"/>
      <property name="majorTickSpacing" value="0"/>
      <property name="paintTicks" value="true"/>
      <property name="minorTickSpacing" value="1"/>
      <property name="minimumValue" value="1"/>
      <property name="paintLabels" value="true"/>
    </component>
    <component class="com.sri.escot.EscotLabel" position="306,259" size="71,17" visible="true">
      <property name="background" value="204,204,204"/>
      <property name="text" value="Inner Radius:"/>
      <property name="foreground" value="0,0,0"/>
      <property name="font" value="Dialog,Dialog,1,10"/>
    </component>
    <component class="org.escot.demo.HTMLViewer" position="5,5" size="295,310" visible="true" portid="HTMLViewer-1">
      <![CDATA[<HTML>
<BODY>
<B>Collect data to investigate your predictions.</B>
<p>One way to check your predictions is to run an experiment. You can use the computer simulation provided in this activity page to do that.</P>

<P>We suggest that you experiment using several different numbers of points and several different sized radii, by following the instructions below.

<P><B>To run the simulation, please follow these steps carefully and in order:</B></P>

1. If you do not see two circles in the "Worksheet" area on the right, hit the "Reset" button and wait until they show up. It may take some time to reload the picture in the simulation window, so please be patient!<BR>
2. If you want to change the inner radius, move the slider bar under the simulation to the number you wish. The inner radius can take values from 1 to 10. You can experiment with all the values in this range. The outer radius will always be twice the length the inner radius. You will not see the circles change size until you get to step 4.<BR>
3. Click the box called "Total Points" and enter the number of points you want the simulation to generate. We suggest that you use 100, 1000, 10000, and 100000 points. Please note, that the more number of points, the more accurate your results. However, you should be aware that experiments with smaller radii and large number of points will take a long time to run.<BR>
4. Click the "Run" button (located under the simulation).<BR>
5. When the simulation is done (the "Points Left" will count down to 0, even though the "Total Points" will not change), click on the "Sample" button (located next to the table).  Notice how the chart shows the results of your experiment.<BR>
6. Before running the simulation again (for different radii or number of points), you need to hit the "Reset" button.  Wait for the picture in the "Worksheet" area to completely reload and repeat steps 2 through 6.<BR><BR>

<B><P>When you are done experimenting, answer the activity questions in the answer box below.</B></p>
<P><b>Note</b>: You should close the ESCOT Browser when you finish this activity.  If you want to run other activities, run the Browser again.
</P>
</body></html>

]]>
    </component>
    <component class="org.escot.demo.TextEditor" position="7,412" size="589,81" visible="true" answerText="true" portid="TextEditor-1">
      <![CDATA[Please anwer the following questions: 

1. How do the results from the simulation compare with your predictions? 

2. Write a mathematical explanation of what is going on? HINT:  Consider the areas of each of the two circles.

3. Did the percentage of points falling inside the inner circle change as you changed the radius? Explain your results mathematically.

BONUS:  In this simulation, the radius of the outer circle was 2 times the radius of the inner circle.  Now consider a different situation:  What percentage of points do you think would fall in the inner circle if you made the radius of the outer circle 3 times the radius of the inner circle?  Please explain your answer.

]]>
      <property name="foreground" value="0,0,0"/>
      <property name="background" value="255,255,255"/>
      <property name="font" value="Dialog,Dialog,0,12"/>
    </component>
    <component class="com.sri.escot.NumberEntry" position="460,291" size="129,17" visible="true" portid="NumberEntry-2">
      <property name="value" value="100.0"/>
      <property name="minimumDecimalPlaces" value="0"/>
      <property name="allowNegative" value="false"/>
      <property name="editable" value="false"/>
      <property name="maximumDecimalPlaces" value="0"/>
      <property name="label" value="Points Left:"/>
      <property name="suffix" value=""/>
    </component>
    <wire type="org.escot.Broker">
      <from portid="LogoScript-1" name="Total Points"/>
      <to portid="SimpleNumberTable-1" name=""/>
    </wire>
    <wire type="org.escot.Broker">
      <from portid="LogoScript-1" name="Inner Radius"/>
      <to portid="SimpleNumberTable-1" name=""/>
    </wire>
    <wire type="org.escot.Broker">
      <from portid="LogoScript-1" name="In InnerCircle"/>
      <to portid="SimpleNumberTable-1" name=""/>
    </wire>
    <wire type="org.escot.Broker">
      <from portid="LogoScript-1" name="In OuterCircle"/>
      <to portid="SimpleNumberTable-1" name=""/>
    </wire>
    <wire type="org.escot.Broker">
      <from portid="AgentSheetsWrapper-1" name="POINTSININNERCIRCLE"/>
      <to portid="LogoScript-1" name="In InnerCircle"/>
    </wire>
    <wire type="org.escot.Broker">
      <from portid="AgentSheetsWrapper-1" name="POINTSINOUTERCIRCLE"/>
      <to portid="LogoScript-1" name="In OuterCircle"/>
    </wire>
    <wire type="org.escot.Broker">
      <from portid="AgentSheetsWrapper-1" name="PROBABILITYININNERCIRCLE"/>
      <to portid="LogoScript-1" name="%(Inner)"/>
    </wire>
    <wire type="org.escot.Broker">
      <from portid="AgentSheetsWrapper-1" name="PROBABILITYINOUTERCIRCLE"/>
      <to portid="LogoScript-1" name="%(Outer)"/>
    </wire>
    <wire type="org.escot.Broker">
      <from portid="LogoScript-1" name="%(Inner)"/>
      <to portid="SimpleNumberTable-1" name=""/>
    </wire>
    <wire type="org.escot.Broker">
      <from portid="LogoScript-1" name="%(Outer)"/>
      <to portid="SimpleNumberTable-1" name=""/>
    </wire>
    <wire type="org.escot.Broker">
      <from portid="AgentSheetsWrapper-1" name="INNERRADIUS"/>
      <to portid="LogoScript-1" name="Inner Radius"/>
      <to portid="EscotSwingSlider-1" name="value"/>
    </wire>
    <wire type="org.escot.Broker">
      <from portid="AgentSheetsWrapper-1" name="NUMBEROFPOINTS"/>
      <to portid="NumberEntry-2" name="number"/>
    </wire>
    <wire type="org.escot.Broker">
      <from portid="SimpleNumberTable-1" name="Sample"/>
      <to portid="ButtonPanel-1" name=""/>
    </wire>
    <wire type="org.escot.Broker">
      <from portid="NumberEntry-1" name="number"/>
      <to portid="AgentSheetsWrapper-1" name="NUMBEROFPOINTS"/>
      <to portid="AgentSheetsWrapper-1" name="TOTALPOINTS"/>
    </wire>
    <wire type="org.escot.Broker">
      <from portid="EscotSwingSlider-1" name="value"/>
      <to portid="AgentSheetsWrapper-1" name="INNERRADIUS"/>
    </wire>
    <wire type="org.escot.Broker">
      <from portid="AgentSheetsWrapper-1" name="TOTALPOINTS"/>
      <to portid="LogoScript-1" name="Total Points"/>
    </wire>
    
  </page>
</activity>

