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 14:00
Which database model is best used for data warehouse and data mining
Answers: 3
question
Computers and Technology, 22.06.2019 19:30
The following is an excerpt from a slide presentation. today we will inverse operations solving equations using inverse operations solving inequalities using inverse operations from which part of the presentation does the slide most likely come from? a. introduction b. outline c. body d. conclusion
Answers: 1
question
Computers and Technology, 24.06.2019 05:30
Why is hard disk space important to an audio engineer? why are usb ports and firewire ports useful for an audio engineer? explain in 2-3 sentences. (3.0 points) here's a list of different audio software: ableton live apple inc.'s garageband apple inc.'s logic studio digidesign's pro tools propellerhead sofware's reason sony creative software's acid pro steinberg cubase steinberg nuendo choose one of the software programs listed above, and then go to that software program's web site. read about what the software program is used for, and then write 4-5 sentences about what you learned. (10.0 points) which type of software license is the most limiting? why? explain in 2-3 sentences. (3.0 points) when sending a midi channel voice message, how can you control the volume of the sound? explain in 2-3 sentences. (4.0 points)
Answers: 1
question
Computers and Technology, 24.06.2019 09:50
Create a string list. 2. use console.readline() to collect values of firstname, lastname, street, city, state, zip, save them to list. 3. write a simple linq statement, call method uppercasewords() to change first letter to uppercase. 4. create a foreach statment to display the information. public static string uppercasewords(string value) { char[] array = value.tochararray(); if (array.length > = 1) { if (char.islower(array[0])) { array[0] = char.toupper(array[0]); } } for (int i = 1; i < array.length; i++) { if (array[i - 1] == ' ') { if (char.islower(array[i])) { array[i] = char.toupper(array[i]); } } } return new string(array);
Answers: 3
You know the right answer?
Count = 0 gradeA = 0
gradeB = 0
gradeC = 0
gradeD = 0
gradeF = 0
Choice =...
Questions
question
Advanced Placement (AP), 27.03.2021 18:40
question
Mathematics, 27.03.2021 18:50
question
Mathematics, 27.03.2021 18:50
question
World Languages, 27.03.2021 18:50
question
Mathematics, 27.03.2021 18:50
Questions on the website: 13722367