subject

Your grade data is stored in a text file called "gradeInput. txt". Your program should be written so that the input file is located in the same directory as the program file.
Each line in the input file consists of:
*the student's last name, followed by a comma. You can assume that the last name is no more than 15 characters long.
*the student's first name, followed by a space. Note that there are no spaces between the last name and the first name, only the comma. You can assume that the first name is no more than 15 characters long.
*15 homework scores, integers between 0 and 100 inclusive, each pair of numbers separated by a space.
*3 exam scores, integers between 0 and 100 inclusive, each pair of numbers separated by space.
You can assume there are no spaces at the start or end of any line, and that every line (including the last one) is terminated by a newline (\n) character.

Sample file:
Abdallah, Johnetta 65 60 70 65 75 65 80 90 80 70 80 70 50 65 70 70 80 55
Ahle, Delmy 90 80 80 70 70 65 75 65 65 60 70 80 50 70 65 70 80 55
Albares, Cammy 90 85 100 90 80 100 100 100 85 90 90 100 85 80 90 90 85 80
Amigon, Minna 90 90 90 100 100 85 80 80 100 90 80 85 85 90 90 100 85 100
Barfield, Stephaine 55 80 65 50 55 70 60 60 45 40 70 70 60 55 70 55 60 60
Battle, James 100 85 100 85 80 90 100 100 85 80 85 100 90 90 90 90 80 90
Benimadho, Elvera 70 55 55 80 65 60 55 60 45 60 70 40 70 60 60 50 70 55
Blackwood, Kallie 80 80 70 70 60 70 80 80 55 70 65 50 90 70 65 65 65 75
Bolognia, Brock 50 55 70 70 80 75 80 70 70 80 65 90 65 65 80 65 60 70
Bowley, Emerson 80 80 80 90 65 100 60 90 75 90 80 80 75 70 85 75 75 90
Briddick, Jina 80 60 85 65 80 100 75 90 80 70 90 75 90 80 75 80 90 75
Bruschke, Danica 50 70 60 45 80 55 55 60 60 55 55 70 70 60 65 70 40 60
Buvens, Tawna 80 80 70 70 65 65 65 50 60 90 75 70 80 70 70 80 65 55
Caldarera, Kiley 100 85 80 100 100 80 80 90 90 90 85 90 100 85 85 90 90 100

Output File:
Your program should not print anything to the screen. Instead, it should create an output file called "gradeOutput. txt" in the same directory as the program. The output file should contain a table listing the students' names, their homework average, their exam average, and their final grade.
The first column of the table should consist of the students' last names.
The second column of the table should consist of the students' first names.
Note that no commas should appear, and the field should be large enough to contain the entire name. (Do not leave an extra space between fields; if the last name is exactly 15 characters long, allow it to run into the first name.)
The numeric fields should all be 7 characters wide, right justified, with one decimal place of accuracy.
The homework average is simply the average of the 15 homework grades.
The exam average is simply the average of the 3 exam grades.
The final grade is a weighted sum of the other two grades, with a 55% weight given to the homework and a 45% weight given to the exams.
Include a header exactly as shown below.

Done everything correctly, the output should resemble the following for the sample data file:

HW Exam Final
Last Name First Name Avg Avg Grade

Abdallah Johnetta 70.3 68.3 69.4
Ahle Delmy 70.3 68.3 69.4
Albares Cammy 91.0 85.0 88.3
. . .
Whobrey Yuki 91.3 83.3 87.7
Wieser Sage 90.0 90.0 90.0
Yglesias Maurine 70.7 66.7 68.9

The last character in the file should be a newline so that there appears to be a blank line in the file after the last student's data.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 21:00
Kirk found a local community college with a two-year program and he is comparing the cost with that of an out-of-state two-year school. what is the expected total cost for one year at the local community college if kirk lives at home? what is the expected total cost for one year at the out-of-state school if kirk lives on campus?
Answers: 2
question
Computers and Technology, 23.06.2019 22:50
What is an rss reader used for? for creating a user account on a social new site
Answers: 2
question
Computers and Technology, 24.06.2019 02:20
Peter is thinking of a number which isless than 50. the number has 9 factors.when he adds 4 to the number, itbecomes a multiple of 5. what is thenumber he is thinking of ?
Answers: 1
question
Computers and Technology, 24.06.2019 09:00
Technician a says that a new replacement part is always good. technician b says that sometimes recent repair work will be the cause of a complaint. who is correct? a. both technicians a and b b. technician a c. technician b d. neither technician a nor b
Answers: 3
You know the right answer?
Your grade data is stored in a text file called "gradeInput. txt". Your program should be written so...
Questions
question
Mathematics, 02.12.2021 14:10
question
History, 02.12.2021 14:20
question
English, 02.12.2021 14:20
question
Mathematics, 02.12.2021 14:20
question
English, 02.12.2021 14:20
question
Mathematics, 02.12.2021 14:20