Write a C++ program to calculate the, mean, median and mode of an array elements. A data set of following 11 numbers are to be stored in an array. The array needs to be initialized in the main() function with numbers based on your Registration Number (reg#): reg# reg# reg# reg# reg# reg# reg# reg# reg# reg# + 26 + 12 reg# - 14 - 27 - 20 + 19 + 16 - 23 - 27 - 30 Example: If your reg# is 712, then: 698 685 692 731 728 712 738 724 689 685 682 • -The mean is the average of data. means, The mean is the sum of whole data divided by the number of data elements. • -The median is the middle number in the ascending ordered set of data or average of two middle numbers in case of even number of data elements of the ordered array. -The mode is the most common number in the set of data.

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter7: Arrays
Section: Chapter Questions
Problem 1PP: (Statistics) a. Write a C++ program that reads a list of double-precision grades from the keyboard...
icon
Related questions
Question
My registration number is 689
Write a C++ program to calculate the, mean, median and mode of an array elements.
A data set of following 11 numbers are to be stored in an array. The array needs to be
initialized in the main() function with numbers based on your Registration Number
(reg#):
reg# reg#
reg# reg# reg#
- 27
reg# reg# reg# reg# reg#
+ 26
reg#
- 14
- 20
+ 19
+ 16
+ 12
- 23
- 27
- 30
Example: If your reg# is 712, then:
698
685
692
731
728
712
738
724
689
685
682
-The mean is the average of data. means, The mean is the sum of whole data
divided by the number of data elements.
• -The median is the middle number in the ascending ordered set of data or
average of two middle numbers in case of even number of data elements of the
ordered array.
-The mode is the most common number in the set of data.
Transcribed Image Text:Write a C++ program to calculate the, mean, median and mode of an array elements. A data set of following 11 numbers are to be stored in an array. The array needs to be initialized in the main() function with numbers based on your Registration Number (reg#): reg# reg# reg# reg# reg# - 27 reg# reg# reg# reg# reg# + 26 reg# - 14 - 20 + 19 + 16 + 12 - 23 - 27 - 30 Example: If your reg# is 712, then: 698 685 692 731 728 712 738 724 689 685 682 -The mean is the average of data. means, The mean is the sum of whole data divided by the number of data elements. • -The median is the middle number in the ascending ordered set of data or average of two middle numbers in case of even number of data elements of the ordered array. -The mode is the most common number in the set of data.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 2 images

Blurred answer
Knowledge Booster
Storage Devices
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++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
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