Need help with this program in C++... File Processing Specified Number of Record
ID: 3640569 • Letter: N
Question
Need help with this program in C++...File Processing
Specified Number of Records
Assume that the first record in a sensor data file contains an integer that specifies the number of records of sensor information that follow.
Each of the following lines contains a time and sensor reading. Write a program that generates a summary report to an output file.
input.txt (input file)
10
0.0 132.5
0.1 147.2
0.2 148.3
0.3 157.3
0.4 163.2
0.5 158.2
0.6 169.3
0.7 148.2
0.8 137.6
0.9 135.9
Sample Output:
Number of sensor readings:
Average reading:
Maximum reading:
Minimum reading:
Implementation:
Output file name should be output.txt
Input file name should be input.txt