Description This program is to be utilized by basketball coaches. The coaches will be able to input a player's points scored over a span of ten games and the program will then output the player’s average.
Program Design.
Declare PointsScored [10] of reals
Declare sum, average as real
Declare B as int
Set sum = 0
For B = 0 1 to 11
Write “Enter players points scored”, B +1
Input PointsScored
Set Sum = Sum + Points Scored (B)
End For
Set Average = Sum/10
For B = 0 Step 1 to 11
Write “The average points scored over ten games”,
End For
Write “The average of points scored over ten games”, Average