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

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 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

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_2

Step: 3

blur-text-image_3

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

Essentials of Database Management

Authors: Jeffrey A. Hoffer, Heikki Topi, Ramesh Venkataraman

1st edition

133405680, 9780133547702 , 978-0133405682

More Books

Students also viewed these Databases questions

Question

What is an impairment of a fixed asset?

Answered: 1 week ago

Question

a. What is the purpose of the team?

Answered: 1 week ago

Question

b. What are its goals and objectives?

Answered: 1 week ago