Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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) -
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, } \mathrm{m} 1, \mathrm{~m} 2, \mathrm{~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
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started