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 19:00
How is the number 110 written when expanded out to place values in the base 2 (binary) number system? options: 2 x 4 + 3 x 2 + 4 x 1 1 x 2 + 1 x 2 + 0 x 2 1 x 100 + 1 x 10 + 0 x 1 1 x 4 + 1 x 2 + 0 x 1
Answers: 1
question
Computers and Technology, 22.06.2019 22:30
Who needs to approve a change before it is initiated? (select two.) -change board -client or end user -ceo -personnel manager -project manager
Answers: 1
question
Computers and Technology, 23.06.2019 02:50
Define a class named movie. include private fields for the title,year, and name of the director. include three public functions withprototypes void movie: : settitle(cstring); , voidmovie: : setyear(int); , void movie: : setdirector(string); . includeanother function that displays all the information about a movie.write a main() function that declares a movie object namedmyfavoritemovie. set and display the object's fields.this is what i have but know its wrong since it will notcompile: #include#includeusing namespace std; //class declarationclass movie{private: string movietitle ; string movieyear; string directorname; public: void settitle(string title); void setyear(string year); void setdirector(string director); void displayinfo(); }; //class implementationvoid movie: : settitle(string title){ movietitle = title; cout< < "what is the title of themovie? "< > temp; myfavoritemovie.settitle(temp); cout< < "enter movie year"< > temp; myfavoritemovie.setyear(temp); cout< < "enter director'sname"< > temp; myfavoritemovie.setdirector(temp); //display all the data myfavoritemovie.displayinfo(); system("pause"); return 0; this code is not entirely mine someone on cramster edited my firstcode but then i try manipulating the new code and i still get acompile error message : \documents\visual studio 2008\projects\movie\movie\movie.cpp(46) : error c2679: binary '< < ' : no operator found which takes aright-hand operand of type 'std: : string' (or there is no acceptableconversion)c: \program files (x86)\microsoft visual studio9.0\vc\include\ostream(653): could be'std: : basic_ostream< _elem,_traits> & std: : operator< < > (std: : basic_ostream< _elem,_traits> & ,const char *)w
Answers: 1
question
Computers and Technology, 23.06.2019 03:30
How can you repin an image on your pinterest pin board a. click on the "repin" button b. click on the "add pin" button c. click on the "upload a pin" button d. click on the "save pin" button.
Answers: 2
You know the right answer?
**Python** Write a program that reads the student information from a tab separated values (tsv) file...
Questions
question
Mathematics, 02.07.2019 22:30
question
Social Studies, 02.07.2019 22:30
question
History, 02.07.2019 22:30
Questions on the website: 13722360