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

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 18:30, smariedegray
All of the following are characteristics that must be contained in any knowledge representation scheme except
Answers: 3
image
Computers and Technology, 23.06.2019 09:00, Riddledjam44623
Before you record your own voice, you should a. record other people's voices b. warm up and practice difficult names c. listen to your favorite songs d. read a transcript of a good radio news segment
Answers: 1
image
Computers and Technology, 23.06.2019 19:30, bbgirl8638
Of the following pieces of information in a document, for which would you most likely insert a mail merge field?
Answers: 3
image
Computers and Technology, 23.06.2019 20:30, kaylee2828
Column a of irma’s spreadsheet contains titles for each row, but her document is too big and will be printed three pages across. she wants to be sure that every page will be understood. what can irma do to with this problem?
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 in other subjects:

Konu
Mathematics, 05.08.2021 05:30
Konu
History, 05.08.2021 05:30
Konu
Mathematics, 05.08.2021 05:30