Answered step by step
Verified Expert Solution
Link Copied!

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Information Modeling And Relational Databases

Authors: Terry Halpin, Tony Morgan

2nd Edition

0123735688, 978-0123735683

More Books

Students also viewed these Databases questions

Question

Please show How to do this question?

Answered: 1 week ago

Question

Understand how to design effective service guarantees.

Answered: 1 week ago

Question

Know when firms should not offer service guarantees.

Answered: 1 week ago