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, 22.06.2019 06:30
Selective incapacitation is a strategy to reduce prison population
Answers: 3
question
Computers and Technology, 22.06.2019 10:30
Dave has to create animations for a game. which tool can dave use?
Answers: 3
question
Computers and Technology, 23.06.2019 01:30
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
question
Computers and Technology, 23.06.2019 04:00
Write a method that takes in an array of point2d objects, and then analyzes the dataset to find points that are close together. be sure to review the point2d api. in your method, if the distance between any pair of points is less than 10, display the distance and the (x,y)s of each point. for example, "the distance between (3,5) and (8,9) is 6.40312." the complete api for the point2d adt may be viewed at ~pf/sedgewick-wayne/algs4/documentation/point2d.html (links to an external site.)links to an external site.. try to write your program directly from the api - do not review the adt's source code.
Answers: 1
You know the right answer?
Count = 0 gradeA = 0
gradeB = 0
gradeC = 0
gradeD = 0
gradeF = 0
Choice =...
Questions
question
Mathematics, 16.04.2020 18:40
question
Mathematics, 16.04.2020 18:40
Questions on the website: 13722367