The mean of a list of numbers is its arithmetic average. The median of a list is its middle value when the values are placed in order. For example, if an ordered list contains 1, 2, 3, 4, 5, 6, 10, 11, and 12, then the mean is 6, and their median is 5. Write an application that allows you to enter nine integers and displays the values, their mean, and their median.

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter18: Stacks And Queues
Section: Chapter Questions
Problem 3PE
icon
Related questions
Question
* CENGAGE MINDTAP
Programming Exercise 9-2A
+
Instructions
MeanMedian.java
The mean of a list of numbers is its arithmetic average. The median
of a list is its middle value when the values are placed in order. For
example, if an ordered list contains 1, 2, 3, 4, 5, 6, 10, 11, and 12,
</>
then the mean is 6, and their median is 5. Write an application that
allows you to enter nine integers and displays the values, their
mean, and their median.
An example of the program is shown below:
Enter number 6
12
Enter number 7
14
Enter number 8
16
Enter number 9
18
You entered: 2,
4, 6, 8, 10, 12, 14, 16, 18
The mean is 10.0 and the median is 10
Transcribed Image Text:* CENGAGE MINDTAP Programming Exercise 9-2A + Instructions MeanMedian.java The mean of a list of numbers is its arithmetic average. The median of a list is its middle value when the values are placed in order. For example, if an ordered list contains 1, 2, 3, 4, 5, 6, 10, 11, and 12, </> then the mean is 6, and their median is 5. Write an application that allows you to enter nine integers and displays the values, their mean, and their median. An example of the program is shown below: Enter number 6 12 Enter number 7 14 Enter number 8 16 Enter number 9 18 You entered: 2, 4, 6, 8, 10, 12, 14, 16, 18 The mean is 10.0 and the median is 10
Expert Solution
steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Knowledge Booster
Linux
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning