Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Use C language please 1) Write a main program that prompts the user to enter a fixed number of integer data items using the keyboard

image text in transcribedUse C language please

1) Write a main program that prompts the user to enter a fixed number of integer data items using the keyboard and stores them in an array a. The program should display each entered array element on a separate line. b. The program should then call 2 functions: i. ii ii. Note that the user data acquisition task can also be written as The first function returns the average of the values in the data array The second function uses the average above to calculate the standard deviation of the array values. a function. 2) Average calculation: a. Use the usual sum of all elements divided by the number of elements to calculate the average Standard Deviation calculation: 3) a. Subtract the calculated average from each array value. The result is o new set of array values, each called a deviation. b. Square each deviation. c. Take the average of the squared deviations, as in step 2 d. Take the square root of the result of step c (above). This is the Standard Deviation. 4) 5) Display the Average and Standard Deviation Loop the program continually so new arrays can be entered

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

Essentials of Database Management

Authors: Jeffrey A. Hoffer, Heikki Topi, Ramesh Venkataraman

1st edition

133405680, 9780133547702 , 978-0133405682

More Books

Students also viewed these Databases questions

Question

What are the advantages of using standardized insurance policies?

Answered: 1 week ago