Answered step by step
Verified Expert Solution
Question
1 Approved Answer
This is python3 and using visual studio code. Thanks! Your job is to write the following three functions that operate on lists of class scores
This is python3 and using visual studio code. Thanks!
Your job is to write the following three functions that operate on lists of class scores between 0 and 100. 1. Function countScores InRange() should take as input a list of scores (each between 0 and 100), and numbers low and high, and return how many scores in the list are greater than or equal to low and strictly less than high. For example, countScoresInRange([75,82,85,92,84] ,80,90) should return 3. 2. Function scoresToGrades() should take a list of scores between 0 and 100, and return a list of strings with the letter grades (ignoring plus and minus) corresponding to those scores. For example, the call scoresToGrades ( [85,82,98,40,68,72,99]) should return the list ["B", "B", "A", "F", "D", "C", "A"). You may want a helper function to assign a single letter grade. 3. Function printGradeGraph() should take a list of scores between 0 and 100 and print a histogram of the different letter grades using an asterisk for each score. For example, the call printGradeGraph([85,82,90,99,83,67,25,33]) should print to the screen the following: A: ** B: *** C: D: * F: ** Hint: There are several ways to solve this last problem. You should take advantage of at least one of the functions you've already written countScoresInRange () and/or scoresToGrades()Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started