With the aid of the functions above, write a program in c that a. Gets from the user the size of a data set, N. b. Creates an array for real numbers using the value from (a) as size. c. Uses the function from (1) to populate the array with values from the user. d. Uses the function from (3) to get the mean, variance, and standard deviation. e. Uses the function from (2) to display the numbers in the array (data set). f. Displays the mean, variance, and standard deviation of the data set. SAMPLE RUN Enter size of data set: 5 Enter 5 numbers 2.4 -3 6 11.2 3 DATA SET Index 4: 3.000000 Index 3: 11.200000 Index 2: 6.000000 Index 1: -3.000000 Index 0: 2.400000 Mean: 3.920000 Variance: 21.673600 Standard Deviation: 4.655491
With the aid of the functions above, write a program in c that a. Gets from the user the size of a data set, N. b. Creates an array for real numbers using the value from (a) as size. c. Uses the function from (1) to populate the array with values from the user. d. Uses the function from (3) to get the mean, variance, and standard deviation. e. Uses the function from (2) to display the numbers in the array (data set). f. Displays the mean, variance, and standard deviation of the data set. SAMPLE RUN Enter size of data set: 5 Enter 5 numbers 2.4 -3 6 11.2 3 DATA SET Index 4: 3.000000 Index 3: 11.200000 Index 2: 6.000000 Index 1: -3.000000 Index 0: 2.400000 Mean: 3.920000 Variance: 21.673600 Standard Deviation: 4.655491
C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter7: Arrays
Section: Chapter Questions
Problem 7PP: (Numerical) Using the srand() and rand() C++ library functions, fill an array of 1000 floating-point...
Related questions
Question
With the aid of the functions above, write a program in c that
a. Gets from the user the size of a data set, N.
b. Creates an array for real numbers using the value from (a) as size.
c. Uses the function from (1) to populate the array with values from the user.
d. Uses the function from (3) to get the mean, variance, and standard deviation.
e. Uses the function from (2) to display the numbers in the array (data set).
f. Displays the mean, variance, and standard deviation of the data set.
SAMPLE RUN
Enter size of data set: 5
Enter 5 numbers
2.4
-3
6
11.2
3
DATA SET
Index 4: 3.000000
Index 3: 11.200000
Index 2: 6.000000
Index 1: -3.000000
Index 0: 2.400000
Mean: 3.920000
Variance: 21.673600
Standard Deviation: 4.655491
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 3 steps with 1 images
Knowledge Booster
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.Recommended textbooks for you
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr