Question: Define a string myName equal to your first and last name and compute the length N of that string. Define a function createArray that takes

Define a string myName equal to your first and last name and compute the length N of that string. Define a function createArray that takes a soze parameter and returns an array of random intergers between 1 and 100 of that size. Define a function arrayStats that takes an array as input and returns the minimum, maximum, and mean of the array. call the createArray with a size equal to N. call arrayStats with the resulting array. Display all the statistics.

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 Programming Questions!