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, which represents the size of the dataset. Your program should then generate random integers between and 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;
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 and the program generates the following array: the full output should be:
Enter the value of
Generated Arnay:
The sum of all numbers is:
The average of the numbers is:
The product of all numbers is:
The maximum number is:
The minimum number is:
The count of prime numbers is:
You are required to implement separate functions for each task and then invoke them from the main function.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
