Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In Python, create functions get letter_grade v1 and get letter_grade v2 as described below, Part 2 Create a function named get_letter_grade_vl. It is a function

image text in transcribed

In Python, create functions get letter_grade v1 and get letter_grade v2 as described below, 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+": {"low": 96, "high'' : 100 , "gpa " :4.0}, "A" : {'' low " : 93, "high'' : 95, '' gpa " :4.0 "A-":"low": 90, "high":92, "gpa":3.7, "B+":"low": 86, "high":89, "gpa":3.3 "B" : {'' low " : 83, "high'' : 85, '' gpa " :3.0}, '' B-": {"low" : 80, "high'' : 82 , " " :2.7}, "C+":"low":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":3, "name""Pysch 201", "points": 86, "Credits": 4, "points": 92,"credits":3, In Python, create functions get letter_grade v1 and get letter_grade v2 as described below, 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+": {"low": 96, "high'' : 100 , "gpa " :4.0}, "A" : {'' low " : 93, "high'' : 95, '' gpa " :4.0 "A-":"low": 90, "high":92, "gpa":3.7, "B+":"low": 86, "high":89, "gpa":3.3 "B" : {'' low " : 83, "high'' : 85, '' gpa " :3.0}, '' B-": {"low" : 80, "high'' : 82 , " " :2.7}, "C+":"low":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":3, "name""Pysch 201", "points": 86, "Credits": 4, "points": 92,"credits":3

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

SQL Instant Reference

Authors: Gruber, Martin Gruber

2nd Edition

0782125395, 9780782125399

More Books

Students also viewed these Databases questions

Question

Know how to use reservations systems to inventory demand.

Answered: 1 week ago