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