subject

**Python** Write a program that reads the student information from a tab separated values (tsv) file. The program then creates a text file that records the course grades of the students. Each row of the tsv file contains the Last Name, First Name, Midterm1 score, Midterm2 score, and the Final score of a student. A sample of the student information is provided in StudentInfo. tsv. Assume the number of students is at least 1 and at most 20.The program performs the following tasks:Read the file name of the tsv file from the user. Open the tsv file and read the student information. Compute the average score of each student. Assign a letter grade to each student based on the average score in the following scale:A: 90 =< xB: 80 =< x < 90C: 70 =< x < 80D: 60 =< x < 70F: x < 60Compute the average score of each 3xam. Output the last names, first names, scores, and letter grades of the students into a text file named report. txt. Output one student per row and separate the values with a tab character. Output the average of each score, with two digits after the decimal point, at the end of report. txt. Hint: Use the format specification to set the precision of the output. Ex: If the input of the program is:StudentInfo. tsvand the contents of StudentInfo. tsv are:Barrett Edan 70 45 59Bradshaw Reagan 96 97 88Charlton Caius 73 94 80Mayo Tyrese 88 61 36Stern Brenda 90 86 45the file report. txt should contain:Barrett Edan 70 45 59 FBradshaw Reagan 96 97 88 ACharlton Caius 73 94 80 BMayo Tyrese 88 61 36 DStern Brenda 90 86 45 CAverages: midterm1 83.40, midterm2 76.60, final 61.60

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 15:30
What is a costume plot? why is it important to a film or theater production?
Answers: 2
question
Computers and Technology, 23.06.2019 14:30
Select the correct answer. sean is a computer programmer. he has programmed an application for toddlers that plays nursery rhymes. however, a logic error has occurred in the program. which problem is a likely consequence of the error? a. the program crashes every time the user wants to play the nursery rhymes. b. the program crosses its buffer boundaries and overwrites an adjacent program. c. the program plays a different nursery rhyme than the one the user intended to play. d. the program shows different structures in its programming language code. e. the program introduces new viruses every time the user plays a nursery rhyme.
Answers: 1
question
Computers and Technology, 24.06.2019 02:30
Assume a class window with accessor method getwidth that accepts no parameters and returns an integer. assume further an array of 3 window elements named winarr, has been declared and initialized. write a sequence of statements that prints out the width of the widest window in the array.
Answers: 2
question
Computers and Technology, 24.06.2019 17:50
Which of the following best describe how the depth-limited search works. a normal depth-first search is performed but the number of ply/depths is limited. a normal breadth-first search is performed but the number of ply/depths is limited. a normal breadth-first search is performed but values above a specific value will be ignored. a normal depth-first search is performed but values above a specific value will be ignored.
Answers: 1
You know the right answer?
**Python** Write a program that reads the student information from a tab separated values (tsv) file...
Questions
question
Biology, 28.08.2019 07:10
question
Mathematics, 28.08.2019 07:10
question
Biology, 28.08.2019 07:10
question
Mathematics, 28.08.2019 07:10
Questions on the website: 13722361