C++ Write a program to read data from an input file. The first value read is the number of numbers to be read next. Calculate the average of those numbers and display on screen and write to an output...



C++


Write a program to read data from an input file. The first value read is the number of numbers to be read next. Calculate the average of those numbers and display on screen and write to an output file the numbers read and the average of each group of numbers.


input 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 0


Implementation: Use "input.dat" for input file name and "output.dat" for output file name.




Jun 09, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here