Simple JAVA program to calculate stage results based on the score input