Question
Using a Python3 programming interface create a Dictionary and do the calculation as per following information Student ID 1 through 25, also use a key
Using a Python3 programming interface create a Dictionary and do the
calculation as per following information
-
Student ID 1 through 25, also use a key of StudID. (Use random number generator)
-
Insert names of the students against each StudID. Use a key of Name
-
Insert 3 subjects with keys Physics, Chemistry and Mathematics with corresponding numbers between 50 and 100. (can use random number generator)
-
Grade Students on each subject and aggregate as well for following rules. Use corresponding keys for each student.
-
Mark < 51 Fail - F
-
Between 51 and 60 - D
-
Between 61 and 70 - C
-
Between 71 and 80 - B
-
Between 81 and 90 - A
-
Mark > 90 - A+
-
-
Print out by Student Id, Name, Subjects, Marks (both Number and Grade), Total Marks, Average Marks and Overall Grade (Calculate by the average of 3 subjects).
-
Prepare a chart to show how many students are in Grades F to A+
-
Increase Physics marks of students who got less than 65 by 8 marks.
-
In Chemistry increase the marks of students who got between 72 to 82 by 6 marks
-
Decrease the marks of Mathematics for the students who got between 72 to 83 by 5 marks
-
Re-calculate and reprint option(e and f) again.
-
List all the keys.
-
List all students who got equal and more than C grades using the StudID key.
-
List all students who got more than 65 marks in Chemistry and Mathematics by their keys and values (where deemed) for StudentID, Chemistry and Mathematics, Grade, Marks and Overall Grade.
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