Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C programming question. Read carefully and please if you cant comment what you're doing and unable to answer clearly respectfully please dont waste my opprtunity

C programming question. Read carefully and please if you cant comment what you're doing and unable to answer clearly respectfully please dont waste my opprtunity to learn......So I have the following function and as you can imagine compiling it with the data below it reads the data file and ignores the comment. Now I want to write a function int read_something(FILE *fp, double *height, double *weight); that reads the file and store height and weight info into the arrays so it returns the number of data items actually stored in the arrays. and also another function int average( double *x, int N, double *d); where x is the data array, N is the number of data item. So the function computes the average and standard deviation which are stored into d[0] and d[1] respectively.

image text in transcribed

image text in transcribed

#include #include #define MAX BUFFER 1024 4 5 int main(int argc, char targv[]) 7 8 9 10 FILE *fin; char buffer [MAX BUFFER] if (argc #include #define MAX BUFFER 1024 4 5 int main(int argc, char targv[]) 7 8 9 10 FILE *fin; char buffer [MAX BUFFER] if (argc

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

Database Principles Programming And Performance

Authors: Patrick O'Neil

1st Edition

1558603921, 978-1558603929

More Books

Students also viewed these Databases questions

Question

=+j Describe an effective crisis management program.

Answered: 1 week ago