Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

PLEASE SOLVE USING PYTHON!!! No other programming languages. Just python please Lesson Assignment: GradeBook You will build a function that returns a letter grade for

image text in transcribed

PLEASE SOLVE USING PYTHON!!! No other programming languages. Just python please

Lesson Assignment: GradeBook You will build a function that returns a letter grade for a student based on a set of points earned in her/his classes. Every class will use the same letter grade scale and all classes use a 100 point scale The data.py tab holds the data. The variable grade_scale represents the grading scale for a hypothetical university that uses the same scale across all classes grade scale "A+": ("low: 96, "high" :100, "gpa:4.0, "A" : {"low": 93, "high":95, "gpa" :4.0), "A-": {"low": 90) "high":92, " " : 3.7), "B+": "B" : "-": {"low": {"low": {"low" : 86, "high":89, 83, "high":85, 80,'high', :82, "gpa":3.3), "gpa":3.0), "gpa" :2.7), "c+": {"lou": 76, "high":79, "gpa " : 2.3), "C" : {"low": 73, "high":75, "gpa" :2.0), "C-": "low" 70, "high":72, "gpa":1.7, The same module also holds the grades for a student: student123 "id": "smith123", "classes" [ "name "stats 100" "points" 88, "credits" 4, "name "cs 101", "name" "history 101", "points 91, " credits": 31, "name" "Pysch 201", "points 86, "credits": 41 "points"92, "credits": 3), Part 1 Create a function named calculate gpa that is given a grade scale and a student (in that order. It calculates the overall gpa for that student. The student will be in the same format as the example student123 student. Hint: for student123 the overall gpa is 3.47 the gpa for a specific class is found by looking up the points earned in that class in the grade scale grade points for a class is the gpa for that class multiplied by the number of credit hours . total grade points earned is a summation of credits gpa overall GPA is total grade points earned divided by total credits earned As an example, for stats 100 88 points is a 3.3 gpa grade points would be 3.3 gpa x 4 credits Part 2 Create a function named get letter grade v1. It is a function with two parameters grade scale and a gpa (in that order) and it returns the letter grade. If the gpa is so low that it's below a 1.7, return a D

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered 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

Students also viewed these Databases questions

Question

Question 14 of 25 Answered: 1 week ago

Answered: 1 week ago