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

(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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!