From: Andrew <eagletalon@chartermi.net>
Subject: Re: interest computing problem
Date: Sun, 21 Sep 2003 17:55:49 -0500
Date: 2003-09-21T17:55:49-05:00 [thread overview]
Message-ID: <vmsb5a1quu9pab@corp.supernews.com> (raw)
In-Reply-To: <3F6A80FA.3ECF8B55@notes.udayton.edu>
Leon Winslow wrote:
> Andrew
>
> Your program is a good example of a student homework program. It works, as
> long as you remember all of the assumptions you made in writing it. This is
> about as much as most instructors expect of their students and I'm sure you
> got a good grade on it.
>
> It might be instructive, however, to rewrite it in a more robust version.
> For example, define some data types and check the input for valid values.
> Thus, real money is always integers (minimum value is one cent, not .00001 or
> some such) and interest is either an integer type 3% or a float type .12%
> depending on what you want. Note this will require you to define exactly how
> one computes interest times dollars. All of these details are one reason
> real programs tend to look long and complicated to outsiders.
>
> If you can do a robust version of this problem, you will have accomplished
> something past what your instructor expected.
>
> Its always good to see another new Ada programmer. Good luck in your
> endeavors.
>
> Lee Winslow
>
> Andrew wrote:
>
>
>>ok I've run into a snag .. and i'm hoping that a programmer can help me
>>out.
>>
>>here is a copy of my program (written in Ada)
>><<<Snip>>><<<Snip>>>
>>============
>>
>>but I'm hoping that this is just a simple case of I .. well *L* I'm
>>hoping this is a simple error that I'm overlooking..
>>
>>sub-note : this program is directly copied from a printout of a program
>>that I wrote in college (and it worked on the colleges computers).
>>
>>By the way I'm writing this on a Red Hat Linux 9.0 computer (I don't
>>think that would matter but ..)
>
>
That is definitely something that I need to look into.. making this
program as you said a little more robust.
and thank you for the good luck.
Andrew
next prev parent reply other threads:[~2003-09-21 22:55 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-09-16 15:27 interest computing problem Andrew
2003-09-16 15:54 ` Ludovic Brenta
2003-09-16 17:21 ` tmoran
2003-09-17 4:26 ` Andrew
2003-09-16 21:52 ` Robert I. Eachus
2003-09-17 3:48 ` Andrew
2003-09-17 4:28 ` Andrew
2003-09-17 5:18 ` tmoran
2003-09-17 7:47 ` Andrew
2003-09-17 16:05 ` Andrew
2003-09-17 16:32 ` Martin Dowie
2003-09-17 16:36 ` Stupid! -was- " Andrew
2003-09-17 17:00 ` Stephane Richard
2003-09-17 17:15 ` Andrew
2003-09-19 4:07 ` Leon Winslow
2003-09-21 22:55 ` Andrew [this message]
-- strict thread matches above, loose matches on Subject: below --
2003-09-22 0:44 Robert I. Eachus
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox