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.
The description is confusing.
Which step does this comparison take? After the rounding operation or before it?
For example, we calculated a result 0.99, and the minimum accepted is 1. If compare them after rounding, the final result should be -1; otherwise, 1.
This implies that the rounding operation should be
truncate the number
? But actually the rounding operation isround to nearest
.Again, words
no rounding up
misleading us the the rounding operation isrounding down
And, Please HIT the Enter key when the sentence ends. Many parts of the description are needed.
EDIT:
HIT the Enter key
-->HIT the Enter key twice
;-)The instructions need to specify the order of operations to prevent frustrating rounding errors.
Use line break and other components to clean up the description instead of just squishing everything together, like
from
Parameters: money = integer representing how much money you won current_age = integer representing their current age death_age = age when they will die minimum_accepted = the minimum amount that you can possibly live confortably and live each week
to
Parameters:
Never put reference solution in the Preload section or you will get this.
Duplicate of many Fibonacci's here.