Question: //Please Use comments so it can be more clear on my end //Thank you . Write a Java program that keeps prompting the user for

 //Please Use comments so it can be more clear on my

//Please Use comments so it can be more clear on my end

//Thank you

. Write a Java program that keeps prompting the user for (an unspecified number of) test scores that are nonnegative integers, and then determines how many of those scores are strictly above the arithmetic average, and how many are strictly below the average. The user entering a negative number signifies the end of the input (where the value of that negative number does not count towards the average; i.e., the negative int is just used as a "sentinel value"). Assume all scores are integers between 0 and 100. Use type double for the arithmetic mean. Should the user not enter a negative value sooner, make sure the total number of scores does not exceed 100 (you can use break inside your loop for that purpose!) Show output of running your code on five test-runs total: three sequences of scores of your choosing, as well as the following two specific sequences 100, 0, 50, 99, 1, 98, 2, 50, 97,3,-1 50, 55, 60, 65, 70, 75, 75, 75, 80, 85, 90, 95, 100, -100

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!