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

  </head>
  <body>
    <p>
      
    </p>
  </body>
</html>
]]>
    </help>
    <component class="org.escot.demo.HTMLViewer" position="5,5" size="589,388" portid="HTMLViewer-1">
      <![CDATA[<html>
  <body>
  	 <H2>Introduction to Earthquake Problem of the Week</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><small>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></small>
     </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 first problem.</FONT>
     </P>
  </body>
</html>
]]>
    </component>
  </page>
  <page name="Week 1">
    <component class="org.escot.demo.SimpleFunction" position="992,631" size="181,35" portid="SimpleFunction-3">
      <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>
    <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,73.53862129502198,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 -- 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="stepIncrement" value="1.0"/>
      <property name="tickDelay" value="0.1"/>
      <property name="font" value="Dialog,Dialog,0,12"/>
      <property name="end" value="70.0"/>
      <property name="tickDelta" value="0.5"/>
      <property name="start" value="0.0"/>
      <property name="showOptionsButton" value="false"/>
    </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="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,180" portid="HTMLViewer-1">
      <![CDATA[Problem of the Week 1
     Near the end of Sally's school day, a minor earthquake occurs. Soon the "all clear" is given and it is safe to go home. Sally rides her bike at the rate shown in the graph.  
     
     TRY THIS: To move the red line, adjust the slider along the left of the graph up and down. Click the triangular "play" button to run the simulation and watch Sally go from her school past the house. Click the "rewind" button and try again.]]>
      <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,184" size="300,200" portid="TextEditor-1">
      <![CDATA[TYPE YOUR ANSWER TO THESE QUESTIONS:
      
1) Explain the meaning of the red line, the purple line, and the horizontal and vertical axes on the graph.

2) Suppose that Sally's home is either 3, 7, or 10 miles from school. Move the slider and read the graph to find out how long it takes her to get home in each case. How do you know?

3) (BONUS) Write an expression (a distance, rate, time function) that allows Sally to figure out how long it will take her to ride her bike from school to any home location. 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>
    <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-3" 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>
  </page>
</activity>
