comp.lang.ada
 help / color / mirror / Atom feed
From: cptnben@gisco.net (Ben)
Subject: Re: Formatting output
Date: 15 Nov 2001 09:32:02 -0800
Date: 2001-11-15T17:32:02+00:00	[thread overview]
Message-ID: <bf8dbe70.0111150932.536dad02@posting.google.com> (raw)
In-Reply-To: uy9l9xaod.fsf@gsfc.nasa.gov

Actually it was a homework problem. This was the first assigned lab
from my 1999 Introductory Programming class (PASCAL). Now in my Junior
year, I am in an upper level Programming Languages course. Our final
project was to write a manual on an assigned language (mine was 35
pages) I got Ada. One of the things we have to do is give a 2.5 hour
presentation on the language, and assign homework based on your
presentation and manual. I recycled this lab since it is fairly
simple.  Now I am trying to convert it from the original PASCAL to Ada
so I can have a working program before I assign it with my
presentation in two weeks.
I should also correct my post by saying that FLOAT_IO is not used at
all in my current code.
Thanks,
Ben

Stephen Leake <stephen.a.leake.1@gsfc.nasa.gov> wrote in message news:<uy9l9xaod.fsf@gsfc.nasa.gov>...
> cptnben@gisco.net (Ben) writes:
> 
> > I am using the Linux version of the GNAT Ada compiler.
> > 
> > I am trying to format a floating point output from Scientific Notation
> > to a US currency standard. I am new to Ada and the only library I am
> > using is TEXT_IO. I don't know for certain what I have available for
> > other libraries.
> > How might one make the following code (simple program) output the
> > final results (TotFly and TotDri) as U.S. currency.
> 
> This sounds like a homework problem, so I'll only give a hint; look at
> the parameters Fore and Aft in Ada.Text_IO.Float_IO. Then go ask your
> instructor, and your textbook.
> 
> If this is not a homework problem, and that does not help, come back
> for more.
> 
> > <snip>



  parent reply	other threads:[~2001-11-15 17:32 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-11-14 21:58 Formatting output Ben
2001-11-14 22:14 ` Stephen Leake
2001-11-14 22:26   ` Marin David Condic
2001-11-15 17:32   ` Ben [this message]
2001-11-15 18:09     ` Marin David Condic
replies disabled

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