Question: Part II Write a program called RemedialActivity.java, where you implement the following instructions 1. In the main, reads a file called numbers.txt. This file contains

 Part II Write a program called RemedialActivity.java, where you implement the

Part II Write a program called RemedialActivity.java, where you implement the following instructions 1. In the main, reads a file called numbers.txt. This file contains numbers, one per line. The first line in the file represents the total number of values in the file. 2. Read the file and store the values into an array of ints. 3. Print the elements of the array by calling the method print() 4. Calculate the sum of the array by calling the method findSum() 5. Calculate the average of the array by calling the method findAVG). Part III Now that you know how to read a file and populate the values of the file into an array. 1. Write a file called "results.txt''. The file must contain the following information the values that are in the array in the following format: est eat...ten where the e, is the first number from the file, e2 is the second number from the file, etc . the sum: the average: E.g., the file results.txt must have the following information 3 + 7 + 7 + 3 + 10 + 1 + 1 + 1 + 3 + 9 = 45 sum: 45 average: 4.5

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!