Question: 1 . Create a vector ( 1 D array ) of size 2 0 . All the elements are initialized with 0 ( zero )

1. Create a vector (1D array) of size 20. All the elements are initialized with 0(zero) except for the 8th element that is set with the value 8.2. Create a vector of size 16 with random values ranging from 0 to 63, print the vector, then sort it and print the vector again. 3. Create a 5x5 matrix with values ranging from 0 to 24.4. Create an 8x8 array with random values, then find the min and max values stored in this matrix. 5. Create a vector of size 32 that is initialized with random values inside the range (0,99) 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 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 Databases Questions!