Question: Write a program named AverageColumns.java that reads a file containing two columns of floating-point numbers. Prompt the user for the file name. Print the average

Write a program named AverageColumns.java that reads a file containing two columns of floating-point numbers. Prompt the user for the file name. Print the average of each column. Use Exception Handling in your program to verify the input file exists and if a FileNotFoundException is thrown, it is handled in a try - catch block. Make sure your program follows the Java Coding Guidelines and include comments in the code

Your program should be able to read the data file

-15.5 20.8 13.2 2.3 17.1 14.4 15.5 6.8

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!