Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

  1. Student ID 1 through 25, also use a key of StudID. (Use random number generator)

  2. Insert names of the students against each StudID. Use a key of Name

  3. Insert 3 subjects with keys Physics, Chemistry and Mathematics with corresponding numbers between 50 and 100. (can use random number generator)

  4. Grade Students on each subject and aggregate as well for following rules. Use corresponding keys for each student.

    1. Mark < 51 Fail - F

    2. Between 51 and 60 - D

    3. Between 61 and 70 - C

    4. Between 71 and 80 - B

    5. Between 81 and 90 - A

    6. Mark > 90 - A+

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

  6. Prepare a chart to show how many students are in Grades F to A+

  7. Increase Physics marks of students who got less than 65 by 8 marks.

  8. In Chemistry increase the marks of students who got between 72 to 82 by 6 marks

  9. Decrease the marks of Mathematics for the students who got between 72 to 83 by 5 marks

  10. Re-calculate and reprint option(e and f) again.

  11. List all the keys.

  12. List all students who got equal and more than C grades using the StudID key.

  13. 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

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

More Books

Students also viewed these Databases questions

Question

=+ Is secondary industrial action common and/or legal?

Answered: 1 week ago

Question

=+What sanctions are available to employers

Answered: 1 week ago

Question

=+ If strikes occur, are they legally regulated?

Answered: 1 week ago