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 17:00
What does the faves button do? a. users mark a web page as a favorite b. leads other readers to favor a specific page c. readers sort and align their favicons, or favorite icons d. leads users to a message board where they can post questions
Answers: 1
question
Computers and Technology, 24.06.2019 01:00
What shows the web address of the page that is currently displayed in the workspace? status window toolbar location bar internet box
Answers: 1
question
Computers and Technology, 24.06.2019 02:20
The first time a user launches the powerpoint program, which view is shown allowing the user to access recent presentations or create new presentations based on templates?
Answers: 1
question
Computers and Technology, 24.06.2019 12:50
When is it most apprpriate for a development team to change the definition of done
Answers: 1
You know the right answer?
Count = 0 gradeA = 0
gradeB = 0
gradeC = 0
gradeD = 0
gradeF = 0
Choice =...
Questions
question
Computers and Technology, 04.04.2021 04:40
question
Mathematics, 04.04.2021 04:40
question
Mathematics, 04.04.2021 04:40
question
History, 04.04.2021 04:40
question
English, 04.04.2021 04:50
Questions on the website: 13722361