From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,de0e9aae9f2df6da X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-04-24 10:55:39 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!wn14feed!worldnet.att.net!204.127.198.203!attbi_feed3!attbi.com!rwcrnsc54.POSTED!not-for-mail From: tmoran@acm.org Newsgroups: comp.lang.ada Subject: Re: determine the approximate instantaneous value References: <30aln-egd.ln1@beastie.ix.netcom.com> X-Newsreader: Tom's custom newsreader Message-ID: NNTP-Posting-Host: 12.234.13.56 X-Complaints-To: abuse@attbi.com X-Trace: rwcrnsc54 1051206933 12.234.13.56 (Thu, 24 Apr 2003 17:55:33 GMT) NNTP-Posting-Date: Thu, 24 Apr 2003 17:55:33 GMT Organization: AT&T Broadband Date: Thu, 24 Apr 2003 17:55:33 GMT Xref: archiver1.google.com comp.lang.ada:36490 Date: 2003-04-24T17:55:33+00:00 List-Id: 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;