Question: Prompt: + ProcessScores.java input1.txt 1 import java. util. *; 2 import java. io. *; 3 public class ProcessScores { 4 public static void main(String args)
Prompt:


+ ProcessScores.java input1.txt 1 import java. util. *; 2 import java. io. *; 3 public class ProcessScores { 4 public static void main(String args) throws FileNotFoundException { 5 Scanner input1 = new Scanner (new File ("inputl. txt") ) ; 6 processScores (input1) ; 7 8 Scanner input2 = new Scanner (new File ("input2. txt") ) ; 9 processScores ( input2) ; 10 11 Scanner input3 = new Scanner (new File ("input3. txt") ) ; 12 processScores (input3) ; 13 14 15 public static void processScores (Scanner input) { 16 while (input . hasNextLine () ) { 17 String name = input. nextLine ( ) ; 18 String plusLine = input. nextLine ( ) ; 19 int total = plusLine. length ( ) ; 20 int plusses = 0; 21 22 for (int i = 0; i
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
