<?xml version="1.0"?>

<!DOCTYPE activity SYSTEM "escot.dtd">

<activity name="Week 4" size="760,660" escotVersion="1.2.15" puzzle_id="26">

  <page name="Introduction">

    <component class="org.escot.demo.HTMLViewer" position="5,5" size="584,382" visible="true" portid="HTMLViewer-1">

      <![CDATA[<html>

<body>

<P><b>Make a mathematical prediction</b></P>



<P>Suppose now that you are watching a fish swim in a perfectly spherical bowl. Imagine that you could figure out where the fish is at any given time. What percent of the time do you think the fish would be closer to the center of the bowl than to the outside glass surface of the bowl?</P>

1. 12.5%<br>

2. 25% <br>

3. 50% <br>

4. 75% <br>



</body></html>]]>

    </component>

    <component class="org.escot.demo.TextEditor" position="6,398" size="582,95" visible="true" portid="TextEditor-1">

      <![CDATA[The fish would be closer to the center of the spherical bowl (            )% of the time.]]>

      <property name="background" value="255,255,255"/>

      <property name="foreground" value="0,0,0"/>

      <property name="font" value="dialog,Dialog,0,12"/>

    </component>

  </page>

  <page name="Activity Page">

    <component class="edu.colorado.agentsheets.AgentSheetsWrapper" position="406,2" size="343,430" visible="true" portid="AgentSheetsWrapper-1">

      <property name="classname" value="fishbowl"/>

      <property name="XMLPropertysheet" value="pim4.sip"/>

      <property name="XMLWorksheet" value="week4.ws"/>

    </component>

    <component class="virtuoso.logo.LogoScript" position="393,472" size="71,17" visible="false" portid="LogoScript-1">

      <export name="Total Positions" type="number">0.0</export>

      <export name="Positions In" type="number">0.0</export>

      <export name="Positions Out" type="number">0.0</export>

      <export name="% In" type="number">0.0</export>

      <export name="% Out" type="number">0.0</export>

      <![CDATA[]]>

      <property name="toolBarShowing" value="false"/>

    </component>

    <component class="org.escot.demo.SimpleNumberTable" position="6,378" size="398,85" visible="true" portid="SimpleNumberTable-1">

      <customProperty name="models" value=""/>

      <property name="orientation" value="1"/>

      <property name="maximumFractionDigits" value="2"/>

      <property name="minimumFractionDigits" value="0"/>

      <property name="font" value="dialog,Dialog,0,12"/>

      <property name="live" value="false"/>

    </component>

    <component class="org.escot.demo.ButtonPanel" position="43,340" size="85,34" visible="true" portid="ButtonPanel-1">

      <property name="font" value="dialog,Dialog,0,12"/>

    </component>

    <component class="org.escot.demo.HTMLViewer" position="5,5" size="393,335" visible="true" portid="HTMLViewer-1">

      <![CDATA[<html><body><P><B>Collect data to investigate your prediction</b></P>



<P>One way to check your predictions is to run an experiment. Use the computer simulation provided in this activity page to collect data to support your answers.</P>





<P>This simulation is a bit different than the simulations in the previous activities. It has one fish swimming around randomly in a spherical bowl. The simulation keeps track of the position of the fish at all times and knows whether the fish is closer to the center or to the outside glass surface of the bowl. If you look in the lower right corner of the simulation, you will see a small light called a location indicator. If the fish is closer to the center of the bowl, the location indicator will be yellow. If the fish is closer to the outside the bowl, the location indicator will be red. You can think of yellow indicators in the same way as points that landed in the inner circle for the activities of the previous weeks.</P>



<B><P>To run the simulation for your experiments, follow these steps:</P>

</B><P>1. Click on the Run button (located under the simulation).</P>

<P>2. While the simulation is running, you will notice that the number in the "Position Measurements" box will increase. When it reaches the number you want to sample, click the "Sample" button (located above the table) to record the data. Notice how the chart indicates the results of your experiment. We suggest that you sample 100, 1000, and 10000 position measurements. Unlike the previous activities, for this one you will not enter the number of positions to be generated. The simulation will generate these positions as long as it is running. </P>

<P>3. Examine the results in the table to answer the activity questions.</P></body></html>



]]>

    </component>

    <component class="org.escot.demo.TextEditor" position="5,491" size="624,120" visible="true" answerText="true" portid="TextEditor-1">

      <![CDATA[Questions:

1.  According to the simulation, what percentage of the time was the fish swimming closer to the center of the bowl than to the outside glass surface of the bowl? 

2.  Was your prediction close to the results you got from running the simulation? 

3.  Write a mathematical explanation that explains the results of the simulation.



BONUS:

Do you think your answer would change if the fish bowl were larger than the one in our experiment? Why or why not?]]>

      <property name="background" value="255,255,255"/>

      <property name="foreground" value="0,0,0"/>

      <property name="font" value="dialog,Dialog,0,12"/>

    </component>

    <component class="com.sri.escot.NumberEntry" position="149,349" size="143,21" visible="true" portid="NumberEntry-3">

      <property name="value" value="0.0"/>

      <property name="minimumDecimalPlaces" value="0"/>

      <property name="allowNegative" value="true"/>

      <property name="editable" value="false"/>

      <property name="maximumDecimalPlaces" value="3"/>

      <property name="label" value="total positions:"/>

      <property name="suffix" value=""/>

    </component>

    <wire type="org.escot.Broker">

      <from portid="SimpleNumberTable-1" name="Sample"/>

      <to portid="ButtonPanel-1" name=""/>

    </wire>

    <wire type="org.escot.Broker">

      <from portid="AgentSheetsWrapper-1" name="TOTAL"/>

      <to portid="LogoScript-1" name="Total Positions"/>

      <to portid="NumberEntry-3" name="number"/>

    </wire>

    <wire type="org.escot.Broker">

      <from portid="AgentSheetsWrapper-1" name="INNER"/>

      <to portid="LogoScript-1" name="Positions In"/>

    </wire>

    <wire type="org.escot.Broker">

      <from portid="AgentSheetsWrapper-1" name="OUTER"/>

      <to portid="LogoScript-1" name="Positions Out"/>

    </wire>

    <wire type="org.escot.Broker">

      <from portid="AgentSheetsWrapper-1" name="OUTPERCENTAGE"/>

      <to portid="LogoScript-1" name="% Out"/>

    </wire>

    <wire type="org.escot.Broker">

      <from portid="AgentSheetsWrapper-1" name="INPERCENTAGE"/>

      <to portid="LogoScript-1" name="% In"/>

    </wire>

    <wire type="org.escot.Broker">

      <from portid="LogoScript-1" name="Total Positions"/>

      <to portid="SimpleNumberTable-1" name=""/>

    </wire>

    <wire type="org.escot.Broker">

      <from portid="LogoScript-1" name="Positions In"/>

      <to portid="SimpleNumberTable-1" name=""/>

    </wire>

    <wire type="org.escot.Broker">

      <from portid="LogoScript-1" name="Positions Out"/>

      <to portid="SimpleNumberTable-1" name=""/>

    </wire>

    <wire type="org.escot.Broker">

      <from portid="LogoScript-1" name="% In"/>

      <to portid="SimpleNumberTable-1" name=""/>

    </wire>

    <wire type="org.escot.Broker">

      <from portid="LogoScript-1" name="% Out"/>

      <to portid="SimpleNumberTable-1" name=""/>

    </wire>

  </page>

</activity>
