Note:  Set a random seed of 100 for this assignment.  All arrays should contain random numbers between 0 and 1 (zero is inclusive).     Create a one-dimensional array of twenty float random numbers.   Assign the sum of these values to Q1.    Assign the max of these values to Q2.   Create a four by five array of random numbers.   Take the minimum values in each array and create an array of those values.  Assign it to Q3.   Assign the mean of all the array values to Q4.   Create an array with the following values: 2, 3, np.nan (this should represent a missing value), and 5.  Use a numpy function to find the sum of the values in this array.  Assign the sum to Q5 (you should expect a numerical value here).   Create two separate arrays each containing four random numbers.  Concatenate the two arrays and assign it to Q6.   Create a four by four array of random numbers and call it q7.  Concatenate this array with itself and assign it to Q7.   Create a two by four array of random numbers and call it q8.  Vertically stack this array on q7.  Assign it to Q8.     Vertically stack the following arrays in sequence:  q7, q7, q7, q8 and q8.  Assign it to Q9.   Create a two by one array of random numbers.  Horizontally stack this array on q8. Assign it to Q10.   Create an array of twenty random numbers called q11.  At the fifth value, split this array into two. That is, the sixth value should begin the new array. Assign the first part to Q11a and the second part to Q11b.   Split q11 into three parts at the tenth and fifteenth values (that is, the eleventh and sixteenth values should begin the new arrays). Assign the first part to Q12a, the second part to Q12b, and the third part to Q12c.   Create a five by five array of random numbers called q13.  At the third array, vertically split this array into two (that is, the fourth array should begin the new array). Assign the first part to Q13a and the second part to Q13b.   At the third value, horizontally split this array into two (that is, the fourth value should begin the new array).  Assign the first part to Q14a and the second part to Q14b. I got helped with the first four parts, I need help with the rest. please and thank you.

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter8: Arrays
Section: Chapter Questions
Problem 9PE
icon
Related questions
Question

Note:  Set a random seed of 100 for this assignment.  All arrays should contain random numbers between 0 and 1 (zero is inclusive).  

 

  • Create a one-dimensional array of twenty float random numbers.

 

  • Assign the sum of these values to Q1. 

 

  • Assign the max of these values to Q2.

 

  • Create a four by five array of random numbers.

 

  • Take the minimum values in each array and create an array of those values.  Assign it to Q3.

 

  • Assign the mean of all the array values to Q4.

 

  • Create an array with the following values: 23np.nan (this should represent a missing value), and 5.  Use a numpy function to find the sum of the values in this array.  Assign the sum to Q5 (you should expect a numerical value here).

 

  • Create two separate arrays each containing four random numbers.  Concatenate the two arrays and assign it to Q6.

 

  • Create a four by four array of random numbers and call it q7.  Concatenate this array with itself and assign it to Q7.

 

  • Create a two by four array of random numbers and call it q8.  Vertically stack this array on q7.  Assign it to Q8.  

 

  • Vertically stack the following arrays in sequence:  q7, q7, q7, q8 and q8.  Assign it to Q9.

 

  • Create a two by one array of random numbers.  Horizontally stack this array on q8. Assign it to Q10.

 

  • Create an array of twenty random numbers called q11.  At the fifth value, split this array into two. That is, the sixth value should begin the new array. Assign the first part to Q11a and the second part to Q11b.

 

  • Split q11 into three parts at the tenth and fifteenth values (that is, the eleventh and sixteenth values should begin the new arrays). Assign the first part to Q12a, the second part to Q12b, and the third part to Q12c.

 

  • Create a five by five array of random numbers called q13.  At the third array, vertically split this array into two (that is, the fourth array should begin the new array). Assign the first part to Q13a and the second part to Q13b.

 

  • At the third value, horizontally split this array into two (that is, the fourth value should begin the new array).  Assign the first part to Q14a and the second part to Q14b.
I got helped with the first four parts, I need help with the rest. please and thank you.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 7 images

Blurred answer
Knowledge Booster
Array
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT