home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-386-Vol-2of3.iso / c / cat0301.zip / TEST.QSX / TEST.QSN
Text File  |  1991-12-18  |  565b  |  14 lines

  1. i:$distance:100*random+100
  2. i:$rate:50*random+10
  3. q:Two trains are $distance miles apart to begin, and are moving toward
  4. q:each other at $rate miles per hour. In how many hours will they collide?
  5. a:$distance / $rate
  6. e1:1
  7. e21:After one hour they will have travelled $rate miles.
  8. e22:After one hour they will be $distance - $rate miles apart.
  9. h:Each hour they close the distance between themselves by $rate miles.
  10. h:After one hour their separation is $distance - $rate.
  11. h:After two hours, their separation is $distance - 2 x $rate, etc..
  12. End of question
  13.  
  14.