#include kiostream> #includekiomanip #include Kassert.h #include using namespace
ID: 3571342 • Letter: #
Question
#include kiostream> #includekiomanip #include Kassert.h #include using namespace std; string output file void file Manipulation (string output file); int main int List 20 0, max 0, min int j 0 counter 100 double average 0; double sum if stream textfile, in file string line; //file Manipulation (output file); in file open ("input data.txt") while (lin file .eof /List[counter variable in file List(j1; sum List [j] this check for the min value in the array if (List[j] min) min List [j] counter this check for max value in the array if (List[ j max) max List[j]Explanation / Answer
i/p
input_data.txt contain below list
12 122 11 9 122
Enter the file name where you want to write the output
abc.txt
5
The total sum of the above value is : 276
The average for the value is : 55.2
The minimum number found in the above list of value is : 9
The maximum number found in the above list of value is : 122
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.