Question: 3 QUESTION 4 Write a program that 1) Reads two double numbers from a file with a directory C:Users Java numbers.txt 2) Find the average
3 QUESTION 4 Write a program that 1) Reads two double numbers from a file with a directory C:\Users Java numbers.txt 2) Find the average of the two numbers 3) Create a new file with a directory C:\Users Vavalaverage.txt and saves the average in it, Sample Input File: num1 4.5 num2 5.6 Sample Output File: avg: 5.05 import java.io. import java.util."; public class Q2 public static void main(String[] args) throws FileNotFoundException {
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
