[Tutor] Is this correct?
bob gailer
bgailer at gmail.com
Sun Feb 8 19:10:19 CET 2009
cclpianos at comcast.net wrote:
> HI,
>
> I just realized that I shouldn't enclose my project in an attachment.
>
> This is my first attempt to string together py-code. Is this correct?
> And how would a pro word this? It seems like an awful lot of code for
> such a small task.
I think we should start with the fundamental algorithm which I believe is:
set the starting principal and tuition
set the interest rates
each year:
increase the principal by its interest
increase the tuition by its interest
if principle > tuition
increment student count
decrement principal
Is this correct?
--
Bob Gailer
Chapel Hill NC
919-636-4239
More information about the Tutor
mailing list