Question: You are to write a Python program which a)Creates two empty lists named ids and scores ids = [] scores = [] b)Ask the user

You are to write a Python program which

a)Creates two empty lists named ids and scores ids = [] scores = []

b)Ask the user for an id number. As long as this is not 0, append the id to ids, then get a score (0.0 - 100.0) and append it to scores. Then ask for a new id.

c) Find the average of the scores.

d) For each score, assign letter grades according to:

score > average+10 -> A

score > average+5 -> B

score > average-5 -> C

score > average-10 -> D

otherwise -> F

e) Print out each id, the corresponding score, and the grade

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!