Program #3: Gradebook Report (60 pts) • Create a Python program named Exam-3.py • Create three dictionaries: 1loyd, alice, and tyler. • Give each dictionary the keys "name", "homework", "quizzes", and...


Program #3: Gradebook Report (60 pts)<br>• Create a Python program named Exam-3.py<br>• Create three dictionaries: 1loyd, alice, and tyler.<br>• Give each dictionary the keys

Extracted text: Program #3: Gradebook Report (60 pts) • Create a Python program named Exam-3.py • Create three dictionaries: 1loyd, alice, and tyler. • Give each dictionary the keys "name", "homework", "quizzes", and "tests". Now copy this code: lloyd = { "name": "Lloyd", "homework": [90.e,97.e,75.e,92.0], "quizzes": [88.0,40.0,94.0], "tests": [75.0,90.0] alice = { "name": "Alice", "homework": [100.e, 92.0, 98.e, 100.0], "quizzes": [82.0, 83.0, 91.0], "tests": [89.e, 97.e] tyler = { "name": "Tyler", "homework": [e.e, 87.e, 75.e, 22.e], "quizzes": [0.0, 75.0, 78.0], "tests": [100.0, 100.0] Add this code to create a list to include the above dictionaries as items in the list called Student: students-[1loyd, alice, tyler] Add this code to display each student's name and the values of their grades for each category: for student in students: print(student["name"]) print (student["homework" ]) print (student "quizzes"]) print (student["tests"])
Once your run the program it should display something like this:<br>Lloyd<br>[90.0, 97.0, 75.0, 92.0]<br>[88.0, 40.0, 94.0]<br>[75.0, 90.0]<br>Alice<br>[100.0, 92.0, 98.0, 100.0]<br>[82.0, 84.0, 92.0]<br>[89.0, 97.0]<br>Tyler<br>[0.0, 87.0, 75.0, 22.0]<br>[0.0, 75.0, 78.0]<br>[100.0, 100.0]<br>Now modify the program to display the averages of homework, quizzes and tests for<br>each student using a nested for loop and the len() function to calculate the average<br>of each grade your read as you loop.<br>Final outcome after modification:<br>Lloyd<br>Homework average is: 88.5<br>Quizzes average is: 74.0<br>Tests average is: 82.5<br>Alice<br>Homework average is: 97.5<br>Quizzes average is: 86.0<br>Tests average is: 93.0<br>Tyler<br>Homework average is: 46.0<br>Quizzes average is: 51.0<br>Tests average is: 100.0<br>Hint (for the nested loop):<br>hw=0<br>#print (student[

Extracted text: Once your run the program it should display something like this: Lloyd [90.0, 97.0, 75.0, 92.0] [88.0, 40.0, 94.0] [75.0, 90.0] Alice [100.0, 92.0, 98.0, 100.0] [82.0, 84.0, 92.0] [89.0, 97.0] Tyler [0.0, 87.0, 75.0, 22.0] [0.0, 75.0, 78.0] [100.0, 100.0] Now modify the program to display the averages of homework, quizzes and tests for each student using a nested for loop and the len() function to calculate the average of each grade your read as you loop. Final outcome after modification: Lloyd Homework average is: 88.5 Quizzes average is: 74.0 Tests average is: 82.5 Alice Homework average is: 97.5 Quizzes average is: 86.0 Tests average is: 93.0 Tyler Homework average is: 46.0 Quizzes average is: 51.0 Tests average is: 100.0 Hint (for the nested loop): hw=0 #print (student["homework"]) for h in student["homework"]: hw+= h print ("Homework average is:", hw/len(student["homework"]))
Jun 07, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here