Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I want to following output ( just as example) Grade 1: 89 B Grade 2: 91 A Grade 3: 88 B Grade 4: 68 D

I want to following output ( just as example)

Grade 1: 89 B Grade 2: 91 A Grade 3: 88 B Grade 4: 68 D Grade 5: 67 D Average: 80.6 B

Write a program that generates and prints out 5 random integers between 50 and 100.

Write a function that will return the average of these numbers.

Write another function that will return a letter grade for a given numeric grade (Less than 60 is an F, 60 to less than 70 is a D, 70 to less than 80 is a C, 80 to less than 90 is a B, 90 or more is an A.)

Print out each of the 5 integers, their average, and all 6 corresponding letter grades.

ps: Python code

Thanks

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

Database Concepts International Edition

Authors: David M. Kroenke

6th Edition International Edition

0133098222, 978-0133098228

More Books

Students also viewed these Databases questions