Question: hello, I want to create a python and c++ code that gives the user 10 random numbers from 1-100 and then gives the average of

hello, I want to create a python and c++ code that gives the user 10 random numbers from 1-100 and then gives the average of the 10 numbers ( no need for user input)

for example:

hello, I want to create a python and c++ code that gives

create a program that generates 10 random numbers between 1 and 100

  • the program places them in a single variable (an array or list in python) and prints them to the console

  • after the array is full, calculates the average of the numbers and display it

starting The random number is: 68 The random number is: 41 The random number is: 4 The random number is: 42 The random number is: 35 The random number is: 14 The random number is: 70 The random number is: 98 The random number is: 19 The random number is: 32 The average is 42.3

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!