Challenge: Maintain Total Points
Here is a coding challenge based on the concepts covered in this chapter.
We'll cover the following...
Problem statement #
Write a function addPoints()
that increases the total points of two football (soccer) teams according to the result of a game.
The first two parameters (goals1
, goals2
) of this ...