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 17:30
Working on this program in python 3.7: a year in the modern gregorian calendar consists of 365 days. in reality, the earth takes longer to rotate around the sun. to account for the difference in time, every 4 years, a leap year takes place. a leap year is when a year has 366 days: an extra day, february 29th. the requirements for a given year to be a leap year are: 1) the year must be divisible by 42) if the year is a century year (1700, 1800, the year must be evenly divisible by 400some example leap years are 1600, 1712, and 2016.write a program that takes in a year and determines whether that year is a leap year.ex: if the input is 1712, the output is: 1712 is a leap year. ex: if the input is 1913, the output is: 1913 is not a leap year. your program must define and call the function isleapyear(useryear). the function should return true if the input year is a leap year and false otherwise.
Answers: 1
question
Computers and Technology, 24.06.2019 02:00
What is a loop? a. a collection of function definitions at the top of a program b. a line of code that defines a variable and assigns it a value c. a program that opens the turtle graphics window d. a block of code that repeats a specific number of times
Answers: 1
question
Computers and Technology, 24.06.2019 07:30
John recently worked on a project about various programming languages. he learned that though procedural language programs are useful, they have disadvantages too. what is a disadvantage of programs written in procedural languages? a. programs do not represent data complexity. b. programs take more time to execute. c. programs are prone to security threats. d. programs do not interface with multiple platforms.
Answers: 3
question
Computers and Technology, 24.06.2019 22:00
Need getting google account back, big issue
Answers: 2
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
Spanish, 21.09.2019 07:00
Questions on the website: 13722363