87.2k views
5 votes
Write a program that reads student scores, gets the best score, and then assigns grades

1 Answer

1 vote

Final answer:

To write a program that reads student scores, gets the best score, and assigns grades, follow these steps: create a list, ask for input, find the maximum score, assign grades, and print the result.

Step-by-step explanation:

To write a program that reads student scores, gets the best score, and assigns grades, you can follow these steps:

  1. Create a list to store the scores.
  2. Ask the user to enter the scores one by one and add them to the list.
  3. Find the maximum score in the list using the built-in max() function.
  4. Assign grades based on the score using if-elif-else statements.
  5. Print the highest score and the corresponding grade.

User AlfredoVR
by
8.0k points