Re: Population math help!
From: DracSpy@a...
Date: Mon, 15 Feb 1999 16:08:18 EST
Subject: Re: Population math help!
In a message dated 99-02-15 15:49:18 EST, you write:
<< there must be an easier way of doing this than repeating (X x Y) + Z
a number of times equal to Q. (I'm positing a 97-year old colony. You
can
understand my desire to find an easier way.) You can't just do
q{(xy)+z}, because (xy) is a constantly increasing number.
Please help... >>
run the attached file in Qbasic, enter the numbers and hit enter.
INPUT "Colony Age", Q
INPUT "Initial Pop", X
INPUT "Anerage Annuel Groth", Y
INPUT "Average Annual Immigration", Z
Pop = X
FOR a = 1 TO Q
Pop = (X * (.01 * Y)) + Z + Pop
NEXT a
PRINT Pop