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

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 09:00
Which is the highest level of the hierarchy of needs model? a. humanity b. intrapersonal c. team d. interpersonal
Answers: 1
question
Computers and Technology, 23.06.2019 11:00
Describe three characteristics of at-risk drivers. a. b. c. describe three characteristics of safe drivers. a. b. c. describe three driver errors that could cause a collision. a. b. c. how will this information affect you as a driver now and in the future? (2-3 sentences)
Answers: 2
question
Computers and Technology, 23.06.2019 11:30
Which excel file extension stores automated steps for repetitive tasks?
Answers: 1
question
Computers and Technology, 23.06.2019 16:30
If i wanted to include a built-in calendar in a document, what option could i select? draw table insert table insert chart quick tables
Answers: 1
You know the right answer?
Count = 0 gradeA = 0
gradeB = 0
gradeC = 0
gradeD = 0
gradeF = 0
Choice =...
Questions
question
Mathematics, 04.12.2020 19:40
question
History, 04.12.2020 19:40
question
Mathematics, 04.12.2020 19:40
question
Business, 04.12.2020 19:50