Write a program that generates an array a of 10 elements withrandom values in th
ID: 3615430 • Letter: W
Question
Write a program that generates an array a of 10 elements withrandom values in the range [1, 100] and calculates the square rootof all the numbers in array a by calling the functionsquareRoot. Another array b must be declared to store thevalues of the square root of the elements of array a; the functionsquareRoot should be used to assign the corresponding values toarray b.
Example:
Thisprogram generates an array A of 10 random elements in the range [1,100], calculates their square root and assigns the result toanother array B.
Array A Array B = sqrt(A)
54 7.35
24 4.90
38 6.16
95 9.75
94 9.70
6 2.45
33 5.74
80 8.94
96 9.80
23 4.80