Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In Python, create the functions get_letter_grade_v1 and get_letter_grade_v2 as stated in parts one and two. Part 2 Create a function named get_letter_grade_vl. It is a

In Python, create the functions get_letter_grade_v1 and get_letter_grade_v2 as stated in parts one and two.image text in transcribed

Part 2 Create a function named get_letter_grade_vl. 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' Hint: for student123, the letter grade is B+ Part 3 (extra credit) Same as part 2, but name the function get letter grade v2. It has the same parameters but the keys in grade_scale is not guaranteed to be in order. grade_scale "A+": "A" : 2-": {"low " : {"low " : {"low " : 96, 93, 90, "high " :100,'' gpa " :4.0% "high":95, " " :4.0% "high":92, " " :3.7}, "B+": "" "B-": {"low " : {"low " : {"low " : 86, 83, 80, "high":89, "high'' :85, "high'' :82, " " :3.3}, '' gpa " :3.0}, "":2.7}, T+": "C" '' C-": {"low " : {"low " : {"lou'' : 76, 73, 70, "high":79, "high":75, "high":72, "gpa " :23, " " :2.0}, " " . 1.7. e same module also holds the grades for a student student123- "id":"smith123" "classes" points": 88, "credi "points": 92, "credits": 3, "name" "stats 100", "name":"cs 101", "name":"history 101", "points": 91, "credits:3 "name" "Pysch 201" "points86, "credits":4), Part 2 Create a function named get_letter_grade_vl. 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' Hint: for student123, the letter grade is B+ Part 3 (extra credit) Same as part 2, but name the function get letter grade v2. It has the same parameters but the keys in grade_scale is not guaranteed to be in order. grade_scale "A+": "A" : 2-": {"low " : {"low " : {"low " : 96, 93, 90, "high " :100,'' gpa " :4.0% "high":95, " " :4.0% "high":92, " " :3.7}, "B+": "" "B-": {"low " : {"low " : {"low " : 86, 83, 80, "high":89, "high'' :85, "high'' :82, " " :3.3}, '' gpa " :3.0}, "":2.7}, T+": "C" '' C-": {"low " : {"low " : {"lou'' : 76, 73, 70, "high":79, "high":75, "high":72, "gpa " :23, " " :2.0}, " " . 1.7. e same module also holds the grades for a student student123- "id":"smith123" "classes" points": 88, "credi "points": 92, "credits": 3, "name" "stats 100", "name":"cs 101", "name":"history 101", "points": 91, "credits:3 "name" "Pysch 201" "points86, "credits":4)

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

More Books

Students also viewed these Databases questions