Question: Write a program that will do the following. a . Accept a number, n , from the user in the range 5 to 9 b

Write a program that will do the following.
a. Accept a number, n, from the user in the range 5 to 9
b. Define two arrays of the size (1,n). Fill the arrays with random integer number in the
range 5 to 12. Print the arrays.
c. Multiply the two rows (element by element) and find the sum of the result. Print the
result.
d. Add the two arrays (element by element) and find the sum of the result. Print the result.
e. Multiply the first array by the transpose of the second one. Print the result

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!