Write a program to read data from input filenbsp the first


Intro to C++ program. I've written it but it doesn't seem to work.

Write a program to read data from input file.  The first value read is the number of numbers to be read next.  Calculate average of those numbers and write to an output file the numbers read and the average.  Repeat this process until end of file. Use eof member function,

Sample of input file: 

NAME YOUR FILE   " lab4input.dat"  for input file

                                 "lab4output.dat" for output file

 

4   12 14   99   83  5  2  9  56   4   3   2   13   15   1   6   8    32   12    3   4   5   12   34   45 

 

 

Request for Solution File

Ask an Expert for Answer!!
C/C++ Programming: Write a program to read data from input filenbsp the first
Reference No:- TGS01141770

Expected delivery within 24 Hours