There are two gymnastics teams. Reds and Blues. They compete agains each other 3 times. The winner with the highest average score wins the trophy
- Calculate the average score for each team, using the test data below
Data: Reds score 96, 108 and 89. Blues score 88, 91 and 110
- Compare the team's average scores to determine the winner of the competition, and print it to the console. Don't forget that there can be a draw, so test for that as well (draw means they have the same average score)
BONUS 1 π: Include a requirement for a minimum score of 100. With this rule, a team only wins if it has a higher score than the other team, and the same time a score of at least 100 points.
Good Luck π