Question: (In Java) Write a program to read a set of game points scored by a basketball team. The program uses an end of entry sentinel

(In Java) Write a program to read a set of game points scored by a basketball team. The program uses an end of entry sentinel of -1 to terminate the data entry from the end user. Print the total points scored as well as the average points scored. Here is one possible sample output. (In Java)
Enter the number of points your team has scored for each game this season. Enter -1 when finished. Enter game points or -1 to end: 82 Enter game points or -1 to end: 102 Enter game points or -1 to end: 78 Enter game points or -1 to end: 64 Enter game points or -1 to end: 94 Enter game points or -1 to end: -1 The total points are 420 The average points are 84
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
