Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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.

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

Learning PostgreSQL

Authors: Salahaldin Juba, Achim Vannahme, Andrey Volkov

1st Edition

178398919X, 9781783989195

More Books

Students also viewed these Databases questions

Question

=+44-6 Discuss predictors of happiness and how we can be happier.

Answered: 1 week ago