Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

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

Explanation / Answer

please rate - thanks #include #include #include #include #include int main() {int a[10],i; double b[10]; srand(time(0)); for(i=0;i
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote