Computers and Technology

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))

answer
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 07:00, Jasten
For all machines-not just hammers- the user applies force force to the machine to the machine over a certain distance. a. input b. output c. duo d. none of the above
Answers: 1
image
Computers and Technology, 23.06.2019 01:30, giannav57
How do you set up a slide show to play continuously, advancing through all the slides without requiring your interaction? a. click set up slide show, and then select the loop continuously until β€˜esc' and show without narration options. b. click set up slide show, and then select the loop continuously until β€˜esc' and use timings, if present options. c. click set up slide show, and then select the show presenter view and use timings, if present options. d. click set up slide show, and then select the show without animation and browsed at a kiosk (full screen) options.
Answers: 3
image
Computers and Technology, 23.06.2019 04:31, mjweed3381
Cloud computing service providers manage different computing resources based on the services they offer. which resources do iaas and paas providers not manage? iaas providers do not manage the for the client, whereas paas providers usually do not manage the for their clients. iaas- storage server operating system network paas- applications interafce storage vertualiation
Answers: 2
image
Computers and Technology, 23.06.2019 21:00, tiffg2588
Will this setup result in what kathy wants to print?
Answers: 2
Do you know the correct answer?
Here is the answer to Edhesive 7.5 code practice def GPAcalc(grade, weight):

grades = {...

Questions in other subjects: