Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a C program using loops. Problem 2 (40 points): Finding statistics of data set: Average, Standard Deviation and Maximum 1) Average Given a list

Write a C program using loops.

image text in transcribedimage text in transcribed

Problem 2 (40 points): Finding statistics of data set: Average, Standard Deviation and Maximum 1) Average Given a list of n data values/points: mi, m2, , mn, the average value is defined as average= mn- For example with 2 data values: with 3 data values: average = m1+m2 2 m1+m2 +m3 average- 3 We want to find the average value of incoming data without having to store all previous data values in memory. This can be done by 1) Find accumulated sum of all data values 2) Once all n data values are entered (for this problem, n is 8) average- accumulated sum / total number of data points b) Standard Deviation Once a user enters all numbers, the value of standard deviation can also be calculated as sum_squares sum_squares -2 standard deviation average2- Note: sum-squares = (ml) 2 + (m2) 2 + + (mn) 2 Hint: After each value is entered, your program should find the accumulated sum of each value square c) Maximum Once a user enters all numbers, maximum data point can be determined Hint: After each value is entered, your program should decide whether the entered value is a maximum of all entered value thus far. If it is, update the variable used to keep the maximum value

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_2

Step: 3

blur-text-image_3

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

Managing Your Information How To Design And Create A Textual Database On Your Microcomputer

Authors: Tenopir, Carol, Lundeen, Gerald

1st Edition

1555700233, 9781555700232

More Books

Students also viewed these Databases questions

Question

10. Is the statement easy to read?

Answered: 1 week ago

Question

=+C&B (especially taxation) laws, regulations, and practices?

Answered: 1 week ago