Question: 1 . Create a vector ( 1 D array ) of size 2 0 . All the elements are initialized with 0 ( zero )
Create a vector D array of size All the elements are initialized with zero except for the th element that is set with the value Create a vector of size with random values ranging from to print the vector, then sort it and print the vector again. Create a x matrix with values ranging from to Create an x array with random values, then find the min and max values stored in this matrix. Create a vector of size that is initialized with random values inside the range and then find the mean of all the initial values.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
