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

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 11:30, kieante01
The most accurate readings that you can take on an analog vom are when the meter's pointer is at the a. center scale. b. extreme right. c. near right. d. extreme left.
Answers: 1
image
Computers and Technology, 23.06.2019 13:00, alexacarillo
In excel - calculate the actual increase/decrease from first quarter to the second quarter then subtract subtract first quarter value from second quarter total then divide result by first quarter value
Answers: 1
image
Computers and Technology, 23.06.2019 15:20, manarhizam12
An ou structure in your domain has one ou per department, and all the computer and user accounts are in their respective ous. you have configured several gpos defining computer and user policies and linked the gpos to the domain. a group of managers in the marketing department need different policies that differ from those of the rest of the marketing department users and computers, but you don't want to change the top-level ou structure. which of the following gpo processing features are you most likely to use? a, block inheritance b, gpo enforcement c, wmi filtering d, loopback processing
Answers: 3
image
Computers and Technology, 24.06.2019 19:30, luckye
Can someone who is skilled at coding create me a java chess game. don't copy from online source codes. make it original ! : d
Answers: 1
You know the right answer?
Here is the answer to Edhesive 7.5 code practice def GPAcalc(grade, weight):

grades = {...

Questions in other subjects:

Konu
Mathematics, 24.04.2020 22:52
Konu
Biology, 24.04.2020 22:52