Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

//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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Principles Programming And Performance

Authors: Patrick O'Neil

1st Edition

1558603921, 978-1558603929

More Books

Students also viewed these Databases questions

Question

Prove the formula in Prob. 17.

Answered: 1 week ago

Question

LO2 Explain the nature of the psychological contract.

Answered: 1 week ago