Re: 573 - The Snail
Posted: Sun Aug 07, 2016 5:48 am
I misunderstood the problem, the statement:
"The snail has a fatigue factor of 10%, which means that on each successive day the snail climbs 10% 3 = 0.3 feet less than it did the previous day."
means every day, the snail lost 10% of climbed distances, no matter climbed distances bellow zero or above zero. I thought the factor goes back to zero when climbed distances bellow zero.
There is no need to use float point number, just use integer and multiplicate the common divider.
"The snail has a fatigue factor of 10%, which means that on each successive day the snail climbs 10% 3 = 0.3 feet less than it did the previous day."
means every day, the snail lost 10% of climbed distances, no matter climbed distances bellow zero or above zero. I thought the factor goes back to zero when climbed distances bellow zero.
There is no need to use float point number, just use integer and multiplicate the common divider.