05.11.2015, 11:22
I am making a score-based rank system.
You start at level 1. When you reach 10 score, you are promoted to level 2. When you get another 10 points - 20 - you level up again. When you get another 20 points - 40 - you level up again. Basically, each level requires 10 more points than the last.
For level 1 you need 10 points (starting point)
For level 2 you need 20 points (10 more than level 1)
For level 3 you need 40 points (20 more than level 2)
For level 4 you need 70 points (30 more than level 3)
I need to create an algorithm to work out how many points you need to reach each level. No loops or variables. I need to be able to say 'how many points are needed to get to level 5'.
You start at level 1. When you reach 10 score, you are promoted to level 2. When you get another 10 points - 20 - you level up again. When you get another 20 points - 40 - you level up again. Basically, each level requires 10 more points than the last.
For level 1 you need 10 points (starting point)
For level 2 you need 20 points (10 more than level 1)
For level 3 you need 40 points (20 more than level 2)
For level 4 you need 70 points (30 more than level 3)
I need to create an algorithm to work out how many points you need to reach each level. No loops or variables. I need to be able to say 'how many points are needed to get to level 5'.