Question: Can anyone please help me with this Python 3.6.2 programming assignment? In this programming assignment, you are to modify the attached gradebook.py file to display

Can anyone please help me with this Python 3.6.2 programming assignment?

In this programming assignment, you are to modify the attached gradebook.py file to display the average of each students grade and the average for each assignment. The gradebook.py

# gradebook.py

# Display the average of each student's grade.

# Display tthe average for each assignment.

gradebook = [[61, 74, 69, 62, 72, 66, 73, 65, 60, 63, 69, 63, 62, 61, 64],

[73, 80, 78, 76, 76, 79, 75, 73, 76, 74, 77, 79, 76, 78, 72],

[90, 92, 93, 92, 88, 93, 90, 95, 100, 99, 100, 91, 95, 99, 96],

[96, 89, 94, 88, 100, 96, 93, 92, 94, 98, 90, 90, 92, 91, 94],

[76, 76, 82, 78, 82, 76, 84, 82, 80, 82, 76, 86, 82, 84, 78],

[93, 92, 89, 84, 91, 86, 84, 90, 95, 86, 88, 95, 88, 84, 89],

[63, 66, 55, 67, 66, 68, 66, 56, 55, 62, 59, 67, 60, 70, 67],

[86, 92, 93, 88, 90, 90, 91, 94, 90, 86, 93, 89, 94, 94, 92],

[89, 80, 81, 89, 86, 86, 85, 80, 79, 90, 83, 85, 90, 79, 80],

[99, 73, 86, 77, 87, 99, 71, 96, 81, 83, 71, 75, 91, 74, 72]]

gradebook.py contains a two-dimensional array representing the grades for a made-up course. Each row of the array represents a student, while each column of the array represents an assignment.

If the following two-dimensional array was contained within the python file:

  gradebook = [[100, 100, 100, 96],  [97, 87, 92, 88],  [91, 90, 92, 91]] 

Then you can think of the two-dimensional array as the following spreadsheet:

Assignment 1

Assignment 2

Assignment 3

Assignment 4

Student 1:

100

100

100

96

Student 2:

97

87

92

88

Student 3:

91

90

92

91

And the program should print off the following when ran:

Assignment Averages: Assignment 1: 96.00 Assignment 2: 95.67 Assignment 3: 94.67 Assignment 4: 91.67  Student Averages: Student 1: 99.00 Student 2: 93.50 Student 3: 91.00 

The output is to be nicely formatted. All averages are to be displayed to two decimal point (example: 97.67).

Testing

Once you have written your program you need to test it. Outside of the program, using a calculator or hand calculation verify that the result is correct. Do this for several rows and columns. If you dont get the same answer figure out why and fix the problem.

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!