Question: Not sure how to do this question using python This is and example of what it should look like: GPA REPORTING SYSTEM Here are your

Not sure how to do this question using python

This is and example of what it should look like: GPA REPORTING SYSTEM Here are your 5 students' grades, before curving: Student 1 = 2.9 Student 2 = 2.4 Student 3 = 3.8 Student 4 = 0.8 Student 5 = 0.2 ===== SUMMARY REPORT ===== Final Student Grades: Student 1 = 3.1 Student 2 = 2.6 Student 3 = 4.0 Student 4 = 1.0000000000000002 Student 5 = 0.4000000000000002 The curve was 0.2 GPA points Student 3 had the highest GPA and set the curve ==========================

Your solution must use: if statement(s), function(s), loop(s), list(s)

Input:

Randomly generate GPA grades for 5 students in decimal format (e.g. 3.2)

One way you can do this is by generating a random number from 0 to 40 and then dividing the number by 10 to make it a decimal number. e.g. if you generate 5 and divide that by 10 you get 2.0, if you generate 33 and divide that by 10 you get 3.3, etc

Process the data

If no student earned a 4.0, curve the highest GPA to 4.0, and curve all other grades by that amount. (e.g. If we had 5 students with the grades [2.8, 3.7, 2.5, 2.0, 3.6], 3.7 would be curved to 4.0 by 0.3 points. All grades would increase by this 0.3, so final grades would be [3.1, 4.0, 2.8, 2.3, 3.9])

To do this, you probably want to first find the maximum value in the list first. This is the grade that will set the curve. You can use this value to calculate the amount of the curve (4.0 - the highest gpa).

Once you know how much each grade will be curved, you should add the curve amount to every student's grade (you can do this with the original list or make a new list). This means you must iterate over the list, visiting every element in the list and adding the curve amount to that element.

Output (after curving, if necessary):

Students' curved grades

Amount of the curve

Student with the highest GPA

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!