subject

Count = 0 gradeA = 0
gradeB = 0
gradeC = 0
gradeD = 0
gradeF = 0
Choice = ' '
total_sum = 0
average= 0
score=0

while Choice !='Q' and Choice !='q':

score = float(input("\nEnter an exam score: "))
if score > 0 and score <= 100:
count = count + 1
pass
if score >= 90 and score <= 100:
gradeA = gradeA + 1
print("you got a A")
elif score >= 70 and score < 90:
gradeB = gradeB + 1
print("you got a B")
elif score >= 50 and score < 70:
gradeC = gradeC + 1
print("you got a C")
elif score >= 40 and score < 50:
gradeD = gradeD + 1
print("you got a D")
elif score > 0 and score <= 39:
gradeF = gradeF + 1
print("you got an F")
elif score > 100:
score= 0
print("your exam score entered is invalid\nplease enter a grade(1-100)")
else :
print("your exam score entered is invalid\nplease enter a grade(1-100)")
Choice = input("Would you like to quit (press 'q'|'Q)' or to continue (press any key)? ")
total_sum = total_sum + score
average = total_sum/count

print ("You entered " + str(count) + " exam scores.")
print ("Number of A's = " + str(gradeA))
print ("Number of B's = " + str(gradeB))
print ("Number of C's = " + str(gradeC))
print ("Number of D's = " + str(gradeD))
print ("Number of F's = " + str(gradeF))
print ( "The average of scores are: {:0.2f}".format(average))

create a flow chart for this program​

ansver
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 23:20, nina1390
How can you tell if someone sent you a text message to your email instead of a email
Answers: 1
image
Computers and Technology, 23.06.2019 17:10, madams4450
Ac++an of of pi. in , pi is by : pi = 4 – 4/3 + 4/5 – 4/7 + 4/9 - 4/11 + 4/13 - 4/15 + 4/17 . ., to pi (9 ). , if 5 to pi, be as : pi = 4 - 4/3 + 4/5 - 4/7 + 4/9 = 4 – 1. + 0.8 - 0. + 0. = 3.. atoofbe to pi?
Answers: 2
image
Computers and Technology, 24.06.2019 11:40, girdwood6678
100 pts. first person gets brainliest
Answers: 2
image
Computers and Technology, 24.06.2019 18:20, 12375819
Use a while-end loop in a script file to calculate the sum of the first n terms of the series: summation sign on the top n bottom k=1 : )^k * k^2 +5k)/3^k show the script file and the two results of n = 10 and n = 20.
Answers: 2
You know the right answer?
Count = 0 gradeA = 0
gradeB = 0
gradeC = 0
gradeD = 0
gradeF = 0
Choice =...

Questions in other subjects:

Konu
Mathematics, 19.01.2021 22:10