Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

in C program language I need you to write a program to generate a running average of my temperature data. The first (integer) input is

in C program language

image text in transcribed

I need you to write a program to generate a running average of my temperature 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 104 279 317 29.56 35.7 38.5 41.6 50.6 48.6 557 60.4 Correct Output 312 339 36.3 41.6 44.8 49.1 538 You need to use functions to solve the problem. I've written the main function and I call two functions that you will need to define, fill_array and calculate_average. You need to define the functions at the location indicated. You may not alter the main function in any way doing so will result in a zero on this assignment For safety, here's a copy of the starter code: include

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

Database Concepts

Authors: David M. Kroenke, David J. Auer

7th edition

133544621, 133544626, 0-13-354462-1, 978-0133544626

More Books

Students also viewed these Databases questions