<?xml version="1.0"?>
<!DOCTYPE activity SYSTEM "escot.dtd" >
<activity name="Earthquake" size="596,412" escotVersion="1.2.7" puzzle_id="17">
  <page name="Introduction">
    <help>
      <![CDATA[<html>
  <head>

  </head>
  <body>
    <p>
      
    </p>
  </body>
</html>
]]>
    </help>
    <component class="org.escot.demo.HTMLViewer" position="5,5" size="586,402" portid="HTMLViewer-1">
      <![CDATA[<html>
  <body>
  	 <H2>Earthquake Problem of the Week (week 2)</H2>
     <P><small>The earth's crust is made up of large pieces called "Tectonic Plates." When these plates slip
     against each other, an earthquake occurs. At this moment, two moving waves of energy leave the "epicenter" -- 
     the center
     of the earthquake -- much like the rings of waves that leave the spot where a rock falls into a pond.
     The two waves travel at different speeds: The "P" or primary wave is the fastest, and the "S" or secondary
     wave is slower. Scientists use the fact that the waves (a) start at the same point and (b) travel at different
     speeds to determine the location of the epicenter of an earthquake. </small></P>
     
     <P>In this series of four Problems of the Week, you play the role of a scientist trying to determine
     the location of the epicenter of an earthquake, using your ability to:
     <UL>
     	<LI>read graphs
     	<LI>find and use distance-rate-time functions
     	<LI>measure distances with geometry
     </UL>
     </P>
     <P>Each week you will solve more of the overall problem of finding the epicenter of an earthquake. 
     <BR><FONT COLOR="#FF0033">Turn the page now to begin the problem for week 2.</FONT>
     </P>
  </body>
</html>
]]>
    </component>
  </page>
  <page name="Week 2">
    <component class="org.escot.demo.SimpleFunction" position="1000,630" size="160,35" portid="SimpleFunction-1">
      <property name="color" value="255,51,51"/>
      <property name="font" value="Dialog,Dialog,0,12"/>
      <property name="name" value="Home"/>
      <property name="a2" value="0.0"/>
      <property name="a1" value="0.0"/>
      <property name="a0" value="5.0"/>
    </component>
    <component class="org.escot.demo.SimpleGraph" position="17,101" size="310,234" portid="SimpleGraph-1">
      <property name="labelInterval" value="4,5"/>
      <property name="derivative" value="0"/>
      <property name="xAxisName" value="minutes"/>
      <property name="scrollable" value="false"/>
      <property name="extent" value="-6.148056244200183,-1.2435897435897434,116.14805624420018,12.0"/>
      <property name="tickInterval" value="5,1"/>
      <property name="yAxisName" value="miles"/>
    </component>
    <component class="org.escot.demo.SimpleFunction" position="1000,632" size="163,35" portid="SimpleFunction-2">
      <property name="color" value="204,0,204"/>
      <property name="font" value="Dialog,Dialog,0,12"/>
      <property name="name" value="bike"/>
      <property name="a2" value="0.0"/>
      <property name="a1" value="0.166"/>
      <property name="a0" value="0.0"/>
    </component>
    <component class="org.escot.demo.SimpleWorld" position="17,5" size="310,97" portid="SimpleWorld-1">
      <customProperty name="IMAGE -- bike" value="images/girlOnBike.gif"/>
      <customProperty name="VERTICAL -- bike" value="1.0"/>
      <customProperty name="REGXOFFSET -- bike" value="-20"/>
      <customProperty name="REGYOFFSET -- bike" value="-30"/>
      <customProperty name="IMAGE -- walk" value="images/girlOnBike.gif"/>
      <customProperty name="VERTICAL -- walk" value="1.0"/>
      <customProperty name="REGXOFFSET -- walk" value="-20"/>
      <customProperty name="REGYOFFSET -- walk" value="-30"/>
      <customProperty name="IMAGE -- Home" value="images/home.gif"/>
      <customProperty name="VERTICAL -- Home" value="1.0"/>
      <customProperty name="REGXOFFSET -- Home" value="-25"/>
      <customProperty name="REGYOFFSET -- Home" value="-40"/>
      <customProperty name="IMAGE -- School" value="images/school.gif"/>
      <customProperty name="VERTICAL -- School" value="1.0"/>
      <customProperty name="REGXOFFSET -- School" value="-25"/>
      <customProperty name="REGYOFFSET -- School" value="-35"/>
      <property name="picture" value="2"/>
      <property name="locked" value="false"/>
      <property name="extent" value="0.0,0.0,12.0,4.85"/>
    </component>
    <component class="org.escot.demo.SimpleClock" position="17,337" size="240,77" portid="SimpleClock-1">
      <property name="looping" value="0"/>
      <property name="showOptionsButton" value="false"/>
      <property name="stepIncrement" value="0.5"/>
      <property name="tickDelay" value="0.1"/>
      <property name="font" value="Dialog,Dialog,0,12"/>
      <property name="end" value="120.0"/>
      <property name="tickDelta" value="0.5"/>
      <property name="start" value="0.0"/>
    </component>
    <component class="com.sri.escot.EscotSwingSlider" position="5,78" size="16,281" portid="EscotSwingSlider-1">
      <property name="scaleFactor" value="1.0"/>
      <property name="minimumValue" value="-3"/>
      <property name="minorTickSpacing" value="0"/>
      <property name="paintLabels" value="false"/>
      <property name="maximumValue" value="12"/>
      <property name="snapToTicks" value="false"/>
      <property name="orientation" value="1"/>
      <property name="paintTicks" value="false"/>
      <property name="majorTickSpacing" value="0"/>
      <property name="value" value="5"/>
    </component>
    <component class="org.escot.demo.TextEditor" position="330,5" size="300,160" portid="HTMLViewer-1">
      <![CDATA[                     Problem of the Week 2
     When their teacher gives the OK, Sally and Suzie (who rides more slowly) hop on their bikes at school and ride to the emergency shelter, passing a house along the way. 
     TRY THIS: To move the red line, adjust the slider along the left of the graph. Click the triangular "play" button and watch Suzie and Sally go from school past the house. Click the "rewind" button and try again. Think about the meaning of the red line segment BETWEEN where it intersects the purple line and where it intersects the green line.]]>
      <property name="foreground" value="0,0,0"/>
      <property name="background" value="255,255,255"/>
      <property name="font" value="Times New Roman,Times New Roman,0,12"/>
    </component>
    <component class="org.escot.demo.TextEditor" answerText="true" position="330,164" size="300,216" portid="TextEditor-1">
      <![CDATA[Answer these questions:
1. Explain the meaning of the red, purple, and green lines, as well as the red line segment described above:
     	
2. Suppose that Suzie passes the house 10, 20, or 40 minutes later than Sally. Read the graph to find out how far the house was from the school in each case:
     	
3. (BONUS) Write an expression (a distance, rate, time function) that allows Sally to find out how far the house was from the school, if she knows only the time difference between when she and Suzie passed the house. Please explain how you came up with the expression.]]>
      <property name="foreground" value="0,0,0"/>
      <property name="background" value="255,255,185"/>
      <property name="font" value="Times New Roman,Times New Roman,0,12"/>
    </component>
    <component class="org.escot.demo.TimeLabel" position="290,337" size="92,13" portid="TimeLabel-1">
      <property name="foreground" value="102,102,153"/>
      <property name="font" value="Application,Application,1,10"/>
    </component>
    <component class="org.escot.demo.SimpleFunction" position="1000,532" size="181,35" portid="SimpleFunction-3">
      <property name="color" value="0,153,51"/>
      <property name="font" value="Dialog,Dialog,0,12"/>
      <property name="name" value="walk"/>
      <property name="a2" value="0.0"/>
      <property name="a1" value="0.1"/>
      <property name="a0" value="0.0"/>
    </component>
    <component class="org.escot.demo.SimpleFunction" position="1002,584" size="181,35" portid="SimpleFunction-4">
      <property name="color" value="0,0,0"/>
      <property name="font" value="Dialog,Dialog,0,12"/>
      <property name="name" value="School"/>
      <property name="a2" value="0.0"/>
      <property name="a1" value="0.0"/>
      <property name="a0" value="1.0"/>
    </component>
    <wire type="org.escot.Broker">
      <from portid="SimpleFunction-1" name="Home"/>
      <to portid="SimpleGraph-1" name=""/>
      <to portid="SimpleWorld-1" name="Simple World"/>
    </wire>
    <wire type="org.escot.Broker">
      <from portid="SimpleFunction-4" name="School"/>
      <to portid="SimpleWorld-1" name="Simple World"/>
    </wire>
    <wire type="org.escot.Broker">
      <from portid="SimpleFunction-2" name="bike"/>
      <to portid="SimpleGraph-1" name=""/>
      <to portid="SimpleWorld-1" name="Simple World"/>
    </wire>
    <wire type="org.escot.Broker">
      <from portid="SimpleClock-1" name="Clock"/>
      <to portid="SimpleWorld-1" name="Simple World"/>
      <to portid="SimpleGraph-1" name=""/>
      <to portid="TimeLabel-1" name=""/>
    </wire>
    <wire type="org.escot.Broker">
      <from portid="EscotSwingSlider-1" name="value"/>
      <to portid="SimpleFunction-1" name="c"/>
    </wire>
    <wire type="org.escot.Broker">
      <from portid="SimpleFunction-3" name="walk"/>
      <to portid="SimpleGraph-1" name=""/>
      <to portid="SimpleWorld-1" name="Simple World"/>
    </wire>
  </page>
</activity>

