comp.lang.ada
 help / color / mirror / Atom feed
From: tmoran@acm.org
Subject: Re: determine the approximate instantaneous value
Date: Thu, 24 Apr 2003 17:55:33 GMT
Date: 2003-04-24T17:55:33+00:00	[thread overview]
Message-ID: <pyVpa.333379$OV.364282@rwcrnsc54> (raw)
In-Reply-To: 30aln-egd.ln1@beastie.ix.netcom.com

with Ada.Text_IO;
procedure Print_Speed is
  Slowest : Float := 0.0;
begin
  -- A 10 second 100 yard dash is a little faster than 20 mph
  Ada.Text_IO.Put_Line("The best estimate is about 20 mph.");
  Ada.Text_IO.Put_Line("It is definitely less than 186,000 mph.");
  -- code here to find the shortest time between the start of one
  -- race and the end of the previous one, and calculate how slow
  -- he could have run to just barely be ready for the later race.
  Slowest := ...
  Ada.Text_IO.Put_Line("And no slower than" & Float'image(Slowest));
end Print_Speed;



       reply	other threads:[~2003-04-24 17:55 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <30aln-egd.ln1@beastie.ix.netcom.com>
2003-04-24 17:55 ` tmoran [this message]
2003-04-24  3:37 determine the approximate instantaneous value juelee
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox