Function: calculatePoints(address _userAddress)
This function is used to calculate the points earned by a user.
Inputs
_userAddress
Control: Arbitrary.
Constraints: None.
Impact: Address of the user to calculate the points for.
Branches and code coverage
Intended branches
Returns the total points earned by the user.