Hi Bob, I missed this in my in box. Sorry.
See below where I have answered your question with yet another.
On Feb 8, 2009, at 11:10 AM, bob gailer wrote:
[email protected] 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?
Yes, but I have one element I need to show. The gift is given on
alternate years, not each year. This should make the results a bit
more substantial.
I can't think of anything but to increase the steps in the loop
allowing for an extra "years worth" of interest to be accumulated.
Surely, there's another
simpler solution.
Thanks again,
Pat
--
Bob Gailer
Chapel Hill NC
919-636-4239
_______________________________________________
Tutor maillist - [email protected]
http://mail.python.org/mailman/listinfo/tutor