subject

Here is the answer to Edhesive 7.5 code practice def GPAcalc(grade, weight):

grades = {"A": 4, "B": 3, "C": 2, "D": 1, "F": 0}

if weight == 0:

return grades[grade]

else:

return grades[grade] + 1

def Main(Random):

Print ("hi")

classes = int(input("How many Classes are you taking? "))

total = 0

for x in range(classes):

letter = input("Enter your Letter Grade: ")

user_weight = int(input("Is it weighted? (1 = yes 0 = no) "))

grade = GPAcalc(letter, user_weight)

total += grade

print("Your GPA score is: ", grade)

print("Your weighted GPA is a",(total/classes))

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 24.06.2019 00:30
Setting up a home network using wireless connections is creating a a. vpn b. lan c. wan d. mini-internet
Answers: 2
question
Computers and Technology, 24.06.2019 05:50
What all vehicles has tesla inc. created over the years
Answers: 3
question
Computers and Technology, 24.06.2019 07:00
Into what form does the barcode reader convert individual bar patterns?
Answers: 1
question
Computers and Technology, 24.06.2019 10:00
(, urgent need): how do i change my username
Answers: 1
You know the right answer?
Here is the answer to Edhesive 7.5 code practice def GPAcalc(grade, weight):

grades = {...
Questions
question
English, 04.12.2020 23:30
question
History, 04.12.2020 23:30
question
History, 04.12.2020 23:30
question
English, 04.12.2020 23:30
question
Mathematics, 04.12.2020 23:30
question
Physics, 04.12.2020 23:30
Questions on the website: 13722361