Question: Question 2 6 pts (6 marks) Write a C++ program to read the following numbers from an interactive user: 12 16 20 34 15 22
Question 2 6 pts (6 marks) Write a C++ program to read the following numbers from an interactive user: 12 16 20 34 15 22 17 10 25 and calculate the average and standard deviation of these number and write them into a file named "report. Ext" with the following format: Number of Data points: num_of_data_points Overall Average: average Standard Deviation: std dv Note that num_of_data points, average and std_dv are variables you need to print their values in the output hle. Hint: Standard deviation'is the measure of spread in a dataset, most commonly used in statistical practice when the mean for average) is used to calculate central tendency. The standard deviation of a number of data points is calculated by the following procedure: 1. Calculate the Mean (the simple average of the numbers) 2. Then for each number subtract the Mean and square the result Then calculate the mean of those squared differences 4 Take the square root of that and we are donet
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
