Question: Write a complete java program that can be executed in the terminal with the command java Midtermi filename where filename will be the actual name

Write a complete java program that can be executed in the terminal with the command java Midtermi filename where filename will be the actual name of a text file that contains a table of numbers in the following format: rows 4 cols 3 12 -7 9 3 14 21 50 -8 3 2 10 The first two lines state the number of rows and columns of the table that follows. You don't need to make any validation, it is guaranteed that the number of rows and cols that are listed in these two lines, are correct. It is also guaranteed that all numbers in the file are integers (not float, double, etc.). The above file is just an example; your program must work with any file that follows this format. Four program should read the data from the file and then calculate and print the mean and the standard deviation for each column of the table. The printing can be in any format you prefer. Just a reminder that the formula for the standard deviation is: (x; -H)2 N The only packages you are allowed to import are: Scanner, File, Math If your code doesn't compile you'll get ZERO points Do not forget to write code with proper encapsulation and visibility of classes/methods/attributes Do not write any comments TIPA AITENL4A
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
