Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Databases Demystified

Authors: Andrew Oppel

1st Edition

0072253649, 9780072253641

More Books

Students also viewed these Databases questions