Question: Exercise 4 (2 Points). Write a program to do the following: 1. Read the content from the file with students' names with class scores Input

Exercise 4 (2 Points). Write a program to do the following: 1. Read the content from the file with students' names with class scores Input file: Name MT181 CS101 PH101 EE101 CH101 Zayn 100 92 85 96 85 Jason 98 82 80 88 79 Russel 84 80 95 99 100 Limus 88 92 93 95 99 Michelle 86 88 81 90 91 Irving 98 93 82 94 81 2. Create a new file (student_average.txt) and write names and max (use Math.max( iteratively) score of classes for each student. Output file: Zayn 100 Jason 98 Russel 100 Limus 99 Michelle 91 Irving 98 3. Create a new file (class_average.txt) and write class name and average score of each class. Output file: MT181 92.33 CS101 87.83 PH101 86.00 FE101 93.66 Chlo89.25 Exercise 4 (2 Points). Write a program to do the following: 1. Read the content from the file with students' names with class scores Input file: Name MT181 CS101 PH101 EE101 CH101 Zayn 100 92 85 96 85 Jason 98 82 80 88 79 Russel 84 80 95 99 100 Limus 88 92 93 95 99 Michelle 86 88 81 90 91 Irving 98 93 82 94 81 2. Create a new file (student_average.txt) and write names and max (use Math.max( iteratively) score of classes for each student. Output file: Zayn 100 Jason 98 Russel 100 Limus 99 Michelle 91 Irving 98 3. Create a new file (class_average.txt) and write class name and average score of each class. Output file: MT181 92.33 CS101 87.83 PH101 86.00 FE101 93.66 Chlo89.25
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
