Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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