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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started