The running total algorithm uses a loop and variable (often called 'total'). It keeps adding to the total until the end of the loop, then shows the final values.
A program calculates weekly points for a player. If they score over 10 points, it should show a message saying "well done".