Question: Please write in programing c Thank you! Question 2: Running Average I'm studying tempertures over various time scales. Unfortunately, my thermometer isn't very precise, so

Please write in programing c Thank you!

Question 2: Running Average

I'm studying tempertures over various time scales. Unfortunately, my thermometer isn't very precise, so I need to average its readings together to level out the spikes.

I need you to write a program to generate a running average of my temperture data. The first (integer) input is the number of data points (guaranteed to be less than 1000). The next (integer) is the number of data points to be averaging together. The rest of the input are whitespace separated floats. Please output the running average with one point of precision, each on their own line.

Example Input

10 4

27.9 31.7 29.56 35.7 38.5 41.6 50.6 48.6 55.7 60.4

Question 3: Remove Outliers

Unfortunately, my thermometer really needs replacement, but it is the only one I have. In each series of readings is will give one erroneous super high temerature. So I need you to remove that value. The first input will be the number of temperature readings (less than 1000). The rest are the readings themselves. Output each reading (with one point of precision) with the erroneous reading removed, each on their own line. You can assume the temperature readings are in Kelvin. 

Example input

10 45.7 100.6 36.7 50.7 60.7 200.7 30.6 80.6 45.8 40.0 

Correct output

45.7 100.6 36.7 50.7 60.7 30.6 80.6 45.8 40.0 

Question 4: Grading the top ten scores

I'm running an experiment on telepathy. Partners in the experiment try to mentally transmit numbers from one partner to the other. The numbers are integers in the range 0-100 inclusive. I gave one partner (sender) a list of numbers to transmit, and the other partner (receiver) wrote down the number they "recieved". I'm interested in the average absolute different between those two lists.

For input, the first number will be the number of numbers transmitted (less than 1000). The next set of numbers are the numbers that the sender sent, and then the numbers received. Report the average absolute difference between the sender and receiver (one decimal point of precision).

Example Input:

3 10 20 30 20 50 10 

Correct Output:

20.0 

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!