Question: Need help to code this program in Java please. Also please add comments on the code so that i can know what is going on.

Need help to code this program in Java please. Also please add comments on the code so that i can know what is going on. I will rate you.

Need help to code this program in Java please. Also please add

comments on the code so that i can know what is going

here is the expected output

on. I will rate you. here is the expected output 15.8 (Student

15.8 (Student Pol) Figure 7.8 contains an array of survey responses that's hard coded into the program two separate programs. First, create an application that prompts the user for survey responses and outputs each response to a file. Use a Formatter to create a file called numbers.txt. Each integer should be written using method format. Then modify the program in Fig. 7.8 to read the survey responses from numbers.txt. The responses should be read from the file by using a Scanner. Use method nextInt to input one integer at a time from the file. The program should continue to read responses until it reaches the end of the file. The results should be output to the text file "out- put.txt". . Suppose we wish to process survey results that are stored in a file. This exercise requires

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!