1. write a program in Python languages that does the following: a. Generates 100 random numbers between -23 and +76. b. Calculates the average of the square of the generated numbers using a function that you implement. c. Calculates the number of number greater than the average than the average using a function that your implement. d. Prints the results single line separated by spaces using a print function that makes call to the previously defined function in part (b) and (c)|

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter6: Modularity Using Functions
Section6.1: Function And Parameter Declarations
Problem 3E
icon
Related questions
Question

Python Program

1. write a program in Python languages that does the following:
a. Generates 100 random numbers between -23 and +76.
b. Calculates the average of the square of the generated numbers using a function that you implement.
c. Calculates the number of number greater than the average than the average using a function that
your implement.
d. Prints the results single line separated by spaces using a print function that makes call to the
previously defined function in part (b) and (c).
Transcribed Image Text:1. write a program in Python languages that does the following: a. Generates 100 random numbers between -23 and +76. b. Calculates the average of the square of the generated numbers using a function that you implement. c. Calculates the number of number greater than the average than the average using a function that your implement. d. Prints the results single line separated by spaces using a print function that makes call to the previously defined function in part (b) and (c).
Expert Solution
steps

Step by step

Solved in 3 steps with 3 images

Blurred answer
Knowledge Booster
Types of Function
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr