Page 1 of 1

E Console Shell Markdown Files O Preview of README.md main.py : MD README.md Grading Program Instructions You have acces

Posted: Sat May 14, 2022 7:35 pm
by answerhappygod
E Console Shell Markdown Files O Preview Of Readme Md Main Py Md Readme Md Grading Program Instructions You Have Acces 1
E Console Shell Markdown Files O Preview Of Readme Md Main Py Md Readme Md Grading Program Instructions You Have Acces 1 (124.13 KiB) Viewed 32 times
E Console Shell Markdown Files O Preview of README.md main.py : MD README.md Grading Program Instructions You have access to a database of student_scores in the format of a dictionary. The keys in student_scores are the names of the students and the values are their exam scores. main.py 1 student_scores = { 2 "Harry": 81, 3 "Ron": 78, 4 "Hermione" : 99, 5 "Draco": 74, 6 "Neville" : 62, 7 } 8 4 Don't change the code above 9 10 #TODO-1: Create an empty dictionary called student grades. 11 12 13 TODO-2: Write your code below to add the grades to student grades. 14 #Scores 91 100: Grade = "Outstanding" 15 #Scores 81 90: Grade "Exceeds Expectations" 16 #Scores 71 80: Grade = "Acceptable" 17 #Scores 70 or lower: Grade = "Fail" 18 19 for loop to go through students 20 if statement ladder to make decisions 21 22 student_grades = { 23 } 24 25 26 print(student_grades) 27 28 29 30 31 32 Write a program that converts their scores to grades. By the end of your program, you should have a new dictionary called student grades that should contain student names for keys and their grades for values. The final version of the student grades dictionary will be checked. DO NOT modify lines 1-7 to change the existing student_scores dictionary. DO NOT write any print statements. This is the scoring criteria: Scores 91 - 100: Grade = "Outstanding" Scores 81 - 90: Grade = "Exceeds Expectations" Scores 71 - 80: Grade = "Acceptable" Scores 70 or lower: Grade = "Fail" Expected Output '{'Harry': 'Exceeds Expectations', 'Ron': 'Acceptable', 'Hermione': 'Outstanding', 'Draco': 'Acceptable', 'Neville': 'Fail'}' CPU RAM Storage