Question: Once it starts, it takes the input file name as an argument from commandline. 2 . The program uses the file name to open the
Once it starts, it takes the input file name as an argument from commandline.
The program uses the file name to open the file. The file has a number of lines. Each line has
two numbers separated by a comma. Therefore, there are actually two columns of numbers.
For example:
The program processes the input data to calculate the average value of all valid numbers in
the first column and the largest value of all valid numbers in the second column. The print
out should be
The average value of all numbers in the first column: XXXXXXX
The largest value of all numbers in the second column: XXXXX
The total number of rows in the file is: XXXX
The invalid numbers are: XXX XXX XXX
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
