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

Question 6: Capstone Question (5 points)

Program: python

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 list of student grades for different sections of CMSE 201. Each element in the list is actually a list itself. 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 list in the list of lists, which correspond to the grades for different sections, and use your new function to compute the average percentage grade. 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 position of that section in the list of lists.

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.

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!