Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Question 6: Capstone Question (5 points) The goal of this question is to include the all topics you have learned about thus far in class

image text in transcribed

Question 6: Capstone Question (5 points) The goal of this question is to include the all topics you have learned about thus far in class in one problem. As such, this problem might be pretty challenging for you -- that's OK! Do your best to solve the problem and remember that it is possible to get partial credit on every question if you are able to figure out even part of the solution. For this question you are given a dictionary of student grades for different sections of CMSE 201. Your task is to write a function that takes in a list of student grades (i.e. the student grades for one section), computes the average grade for that section, and returns that average grade. Once you write your function, you should write a loop that loops over each section in the dictionary, calls your new function to compute the average percentage grade for each section. Your loop should include a print statement that prints the average grade for that section, like so: The average grade in Section
is
The section number is just the key in the dictionary for that section. Your loop should also check to see what letter grade that average percentage grade corresponds to and print out: This average letter grade in this section is You can determine the letter grade using the following criteria If the percentage is greater than or equal to 90%, this corresponds to an A. If the percentage is greater than or equal to 80% and less than 90%, this corresponds to a B. If the percentage is greater than or equal to 70% and less than 80%, this corresponds to a C. n [4]: # Write your solution to question 6 in this cell # Dictionary of grades for each section (some sections have more grades than others) grade_dict = {"001": [85, 71, 68, 95, 97], "002":[90,85, 100, 79, 91, 95], "003": [65, 100, 93, 94,58, 88, 100, 100, 92], "004": [85, 95, 99, 86,87, 88, 90,100,95,931, "005": [93, 91, 95, 92, 82, 95, 84, 81, 100, 75, 72, 66, 54]} # Write your function to average grade from a list of grades # Write a loop through the keys in the dictionary # and print the average grade and average grade letter for each

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

MFDBS 89 2nd Symposium On Mathematical Fundamentals Of Database Systems Visegrad Hungary June 26 30 1989 Proceedings

Authors: Janos Demetrovics ,Bernhard Thalheim

1989th Edition

3540512519, 978-3540512516

More Books

Students also viewed these Databases questions