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

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 15:00, gmc2771
Hyperactive media sales has 10 windows 7 laptop computers used by sales-people in the organization. each laptop computer has several customized applications that are used during the sales process as well as customer relationship management software. all of the applications on the laptops are difficult to configure and have large data files. if all of the laptops have current hardware, what is the easiest way to install windows 10 on them?
Answers: 1
image
Computers and Technology, 23.06.2019 08:30, mai1261
Helen's credit card has an apr of 15.32% and a grace period of 17 days and helen pays her balance in the full every month. if her last billing cycle ended on september 26, 2009, and she made her payment on october 11, 2009, did she owe any interest on her last statement's balance?
Answers: 3
image
Computers and Technology, 23.06.2019 19:30, 123iamthe1
You can apply several different worksheet themes from which tab?
Answers: 1
image
Computers and Technology, 24.06.2019 18:00, aleyshamar14p95561
Your computer running windows 10 is doing some very strange things with the operating system. you are fairly certain it is not a hardware issue. you need to try to get further insight into what is going on within the operating system. which tool would be best-suited for this?
Answers: 1
You know the right answer?
**Python** Write a program that reads the student information from a tab separated values (tsv) file...

Questions in other subjects:

Konu
History, 09.04.2021 01:00