Here is the answer to Edhesive 7.5 code practice
def GPAcalc(grade, weight):
grades = {...
Computers and Technology, 09.02.2021 20:10 emhunter101
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))
Answers: 2
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
Computers and Technology, 24.06.2019 05:50
What all vehicles has tesla inc. created over the years
Answers: 3
Computers and Technology, 24.06.2019 07:00
Into what form does the barcode reader convert individual bar patterns?
Answers: 1
Computers and Technology, 24.06.2019 10:00
(, urgent need): how do i change my username
Answers: 1
English, 04.12.2020 23:30
History, 04.12.2020 23:30
Mathematics, 04.12.2020 23:30
Health, 04.12.2020 23:30
History, 04.12.2020 23:30
Mathematics, 04.12.2020 23:30
English, 04.12.2020 23:30
Mathematics, 04.12.2020 23:30
Physics, 04.12.2020 23:30