Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Create a dictionary. Its keys consist of students' names and the values consist of the list of students' grades. Take both the student names and

Create a dictionary. Its keys consist of students' names and the values consist of the list of students' grades. Take both the student names and the student grades from the user.

Continue taking students' names until a user enters -1.

Each time, check whether a user enter the same name before. (In this class, everyone has a unique name.)

Take exactly three grades for each student.

Each grade should be a positive number including zero, please check each grade whether it meets this condition.

Calculate the average grade for each student and print it on the screen.

Check the dictionary below, which shows the grading scale, and determine the letter grade of each student based on it. Add the letter grades of the students at the end of the student's grade lists and print the final version of the dictionary.

grading_scale = {'A': '100-90', 'B': '89-70', 'C': '69-60', 'D': '59-50', 'F': '49-0'}

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Graph Databases New Opportunities For Connected Data

Authors: Ian Robinson, Jim Webber, Emil Eifrem

2nd Edition

1491930896, 978-1491930892

More Books

Students also viewed these Databases questions

Question

Why do HCMSs exist? Do they change over time?

Answered: 1 week ago