Question: Write a Java code that allows the user to enter any number of values up to 20. If the list has an even number of

Write a Java code that allows the user to enter any number of values up to 20. If the list has an even number of values, the median is the numeric average of the values in the two middle positions. Make the program print the median number out of the given values. Allow the user to enter 9999 to quit entering numbers.

You cannot ask the user to specify how many values will be entered.

I am in Java II, so please, no advanced code.

Thank you!

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!