Question: input an integer, N , which represents the size of the dataset. Your program should then generate N random integers between 1 and 1 0

input an integer, N, which represents the size of the dataset. Your program should then generate N random integers between 1 and 100(inclusive) and store them in a list. Once the array is created, the program will analyze the data and extract valuable insights. The information to be extracted;
1
The sum of all the numbers in the list.
The average of the numbers in the list.
The product of all the numbers in the list.
The maximum and minimum numbers in the list.
The count of prime numbers in the list.
For example, if the user inputs N=5 and the program generates the following array: ,72,88,35, the full output should be:
Enter the value of Ni5
Generated Arnay: ,(56,19,72,88,35)
The sum of all numbers is: 270
The average of the numbers is: 54.00
The product of all numbers is: 108164160
The maximum number is: 88
The minimum number is: 19
The count of prime numbers is: 2
You are required to implement separate functions for each task and then invoke them from the main function.
 input an integer, N, which represents the size of the dataset.

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!