Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started