Define a function to prompt the user to enter valid scores


In python, write a program that reads a list of scores and then assigns grades

Have your program:

Use 100 for the best score

Begin the program and each function with a descriptive comment.

Define main( ) to call the two functions described below.

Define a function to prompt the user to enter valid scores until they enter a sentinel value -999. Have this function both create and return a list of these scores. Do not store -999 in the list!

Have main( ) then pass this the list to a second function which traverses the list of scores printing them along with their appropriate grade.

Run your program with a score within each of the possible grade ranges. See the sample output below.

Use local variables, rather than global.

Use structured code (e.g., no unstructured exits from loops).

Sample output:

94 is an A

83 is a B

72 is a C

61 is a D

59 is an F

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: Define a function to prompt the user to enter valid scores
Reference No:- TGS02908415

Expected delivery within 24 Hours