Question: 1. Write a static method called processInputOutputFiles(), which takes a String array as arguments which has names of input and output files. public static void

1. Write a static method called processInputOutputFiles(), which takes a String array as arguments which has names of input and output files. public static void processInputOutputFiles(String[] args)

It reads the content of the input file whose name is in the first element of args String array with the scores for unknown number of students like the following. The format of the data is, name of a student, followed by comma-separated scores of quiz1, quiz2, quiz3, quiz4, midterm 1, midterm 2 and final for that student:

Thui Bhu, 100, 90, 80, 100, 89, 99, 88 Ariana B. Smith, 90, 90, 100, 100, 99, 100, 95 //more students data

Read each line (scores of a student) at a time, and a) display the output on the screen like this: Student #: 1 Thui Bhu, 100, 90, 80, 100, 89, 99, 88 Student #: 2 Ariana B. Smith, 90, 90, 100, 100, 99, 100, 95 b) and print the output on the disk file whose name is given in the second element of args String array. The disk output looks like this: Student #1 is: "Thui Bhu" whose raw scores are: 100: 90: 80: 100: 89: 99: 88: Student #2 is: "Ariana B. Smith" whose raw scores are: 90: 90: 100: 100: 99: 100: 95:

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!