21.1k views
1 vote
Write a program to do the following print out the highest and lowest scores.

User Mardari
by
8.5k points

1 Answer

1 vote

Final answer:

To print out the highest and lowest scores, you can write a program that reads a list of scores and keeps track of the highest and lowest values.

Step-by-step explanation:

To print out the highest and lowest scores, you can write a program that reads a list of scores and keeps track of the highest and lowest values. Here's an example program in Python:

scores = [99, 56, 78, 55.5, 32, 90, 80, 81, 56, 59, 45, 77, 84.5, 84, 70, 72, 68, 32, 79, 90]
highest_score = max(scores)
lowest_score = min(scores)
print('Highest score:', highest_score)
print('Lowest score:', lowest_score)

This program uses the built-in functions max() and min() to find the highest and lowest scores in the list. It then prints out these values.

User PillowMetal
by
8.3k points