Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Mark your code as a spoiler.
Look at this line of code:
(p0*(percent/100))
. The value that this code returns will contain remainders, in decimals. However, this is not possible as we are talking about population here so there can not be "fractional remainders" of people.For example, if
p0 = 1500
andpercent = 2.5
, then(p0*(percent/100)) == 37.5 people
. Which is incorrect because it is not possible to have 37 and 'a half' humans.Your code is wrong because you think that fractional parts of people give birth which is wrong.