Welcome to the CSC Q&A.
Get help and give help!
Write great code!
It is our choices... that show what we truly are, far more than our abilities.

Categories

0 votes

I did the usual sum method with the populations and divided by the timescale number to get the average, but the numbers always end up being a bit too high.

asked in CSC201 by (448 points)

1 Answer

0 votes

For example, if timescale is 10, then the years are 0-10 inclusive. Including year 0 and year 10, that's really 11 years and you would divide by 11. Generalize from there.

answered by (4.2k points)
0

I think the problem is when it's calculating the sum, but I am not sure when it happens in the code.

0

I was able to fix it!

...