Assignment-3: Student Poll The example program (Example_StudentPoll.java) contains an array of survey responses that’s hard coded into the program. Suppose we wish to process survey results that are...

1 answer below »
deatail in files


Assignment-3: Student Poll The example program (Example_StudentPoll.java) contains an array of survey responses that’s hard coded into the program. Suppose we wish to process survey results that are stored in a file. This exercise requires two separate programs. • First, create an application (CreateResults.java) 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 given program (Example_StudentPoll.java) 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 "output.txt". Deliverable: 1. Report (all the output of your program run) 2. Source file(.java) 3. All the files (numbers.txt, and output.txt) Sample Output numbers.txt Output.txt
Answered 12 days AfterDec 11, 2021

Answer To: Assignment-3: Student Poll The example program (Example_StudentPoll.java) contains an array of...

Kshitij answered on Dec 13 2021
121 Votes
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here