Question: Python 3 If you help or discuss code with another person in this class, you must report this in a comment at the top of

Python 3 If you help or discuss code with another person inPython 3

If you help or discuss code with another person in this class, you must report this in a comment at the top of your program upon submission. You should also make sure that you and your partner do different Added Fun. Instructions Write a program that produces a report on the final GPA grades of 20 students in a class. You must do one of the Added Fun options. Your solution must use if statement(s) function(s) loop(s) . list(s) Input Randomly generate GPA grades for 20 students in decimal format (e.g. 3.2) o 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 20 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]) o 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. o 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!