def get_grade():
"""Prompt the user for a grade between 0 and 100."""
def report_grade_counts(a_count, b_count, c_count, d_count, f_count):
"""Print the number of students in each grade category."""
def calculate_average(total_sum, num_students):
"""Calculate and return the average grade."""
def main():
print("Welcome to the Student Grade Reporter!")
# Repeat a main loop until the user is done #
while True:
# Get grades until less then zero
grade = get_grade()
while grade > 0:
# Update the total sum and number of students
# Determine the highest and lowest grades
# Increment the appropriate grade category counter
grade = get_grade()
# Calculate and display the average grade
# Display highest and lowest grades
# Display the number of students in each category
# Ask if the user wants to repeat
repeat = input("\nDo you want to enter another set of grades? (yes/no): ").lower()
if repeat != 'yes':
break
print("Thank you for using the Grade Management System!")
main()