Question: Please Help me solve this question. It has to be done in Python Language. Please Don't use advanced python and solve it using basic python
Please Help me solve this question. It has to be done in Python Language. Please Don't use advanced python and solve it using basic python like functions, lists, tuples, dictionaries, strings, etc.
Question 6 (program for grading). For IP course, the performance in different elements of the class for students is given in a file (IPmarks.txt) - one line per student as comma separated values: \[ \text { Roll_no, } m 1, m 2, m 3, \ldots \] Roll_no is a string, while m1,m2, are integer marks the student got in assessment 1,2, Separately, the weight of each of the assessments is given as a list of tuples (you can hard code this in your program - assume that correct number of items is provided): wts=[(10,5),(20,5),(100,15),(40,10),] Where the first item is the maximum marks of the assessment, and the second is the weight in % this assessment carries in the final evaluation (the sum of weights should be 100). In the above, assessment 1 (say, a quiz) has maximum marks of 10 and its weight in the final total is 5%; assessment 3 has max marks of 100 , and its weight is 15). For each student, compute the weighted sum of marks normalized to 100. (For weighted sum, assessment 1 marks can be normalized to 5 , assessment 3 to 15, ), and the grade, and write it in a file (IPgrades.txt) as: Roll_no, total_marks, grade For grading, assume that A is above 80%, A- from 70, B from 60, B- from 50, C from 40, C-from 35, D from 30, and below 30 is F
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
