Question: SCILAB: Use the grand with uin function to create an array of random integers. Then Make functions of EACH of the Scilab code from Classwork(10.25)
SCILAB: Use the "grand" with "uin" function to create an array of random integers. Then Make functions of EACH of the Scilab code from Classwork(10.25) below:
1) A function that sums the random numbers in the array.
2) A function that finds the average of the array numbers.
3) A function that finds the square and cube of each number.
4) A function that finds the biggest of the numbers in the array.
The MAIN program should call each function, pass the array, and pass the values back to the MAIN program. The MAIN program is to print the sum, the average, and square and cube of each, the biggest, and state what each print statement is. USE comments to explain
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
