Answered step by step
Verified Expert Solution
Link Copied!

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) -

image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Processing Fundamentals, Design, and Implementation

Authors: David M. Kroenke, David J. Auer

14th edition

133876705, 9781292107639, 1292107634, 978-0133876703

More Books

Students also viewed these Databases questions

Question

2. To compare the costs of alternative training programs.

Answered: 1 week ago

Question

1. The evaluation results can be used to change the program.

Answered: 1 week ago