Question: 1. Write a class ReadTxtFile that reads the text file provided. The text file contains a matrix of numbers that are tab delimited. The program
1. Write a class ReadTxtFile that reads the text file provided. The text file contains a matrix of numbers that are tab delimited. The program should be able to determine automatically the number of rows and columns in the file and read them into a 2-dimensional array. The program then writes the data back into another file where the numbers are comma delimited. The output file should have an extension .csv. It should be possible to open the output file in excel.
2. Read the same text file and calculate the standard deviation and mean of each column. Output your calculated statistics as a csv file. The output file will contain two rows, one for mean and the other for standard deviation.
In jav language
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
