Computer Science, asked by ani1445, 23 days ago

Python :Consider the given scenario. There was a competitive exam for students for admission to Engineering colleges. The exam consisted of Physics, Chemistry and Maths subjects. A student is considered CLEAR if he/she has cleared the individual cut-off scores for all three subjects and also cleared the total cutoff score Define a class Student having the following attributes: Unique student ID of type integer Name of student of type string Physics score of student of type Double Chemistry score of student of type Double Maths score of student of type Double Total score of studenhof type Double Category of student of type String, which represents Reserved (R) or Non-Reserved (NR) Define the init method to initialize the attributes of the objects to be created. Total Score of the students will be 0 initially. Define a method within Student class to find the total score of the student by summing up scores for Physics, Chemistry and Maths. Create another class Result with following attributes a List of Student Objects a Dictionary with subject and cut-off as Key and Value pair Create below functions inside the Result class 1. This function returns the list of cleared students(list of student objects) based on below criteria. The student has cleared cut-off score for Physics, Chemistry, Maths and total cut-off. The cut-off scores are in the form of a dictionary, with subject name as Key and cut-off score as Value. The keys are 'Physics' 'Chemistry', 'Maths' *Total If no student fulfilling the conditions mentioned is found then the method should return None 2. This function takes the list of cleared students(list of student objects) as input (returned from 1st method). If the list is not empty, function does the following Print the message "Overall rank:." It finds the rank of students based on their total score, from this list and returns the student id and rank in the form of a dictionary, with student id as key and rank of student as value

Answers

Answered by kishan1796kkr
0

Answer:

ironan

Explanation:

boy pagal

Similar questions