Database System Concepts
Database System Concepts
7th Edition
ISBN: 9780078022159
Author: Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher: McGraw-Hill Education
Bartleby Related Questions Icon

Related questions

bartleby

Concept explainers

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
Check Mark
Knowledge Booster
Background pattern image
Computer Science
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
Text book image
Database System Concepts
Computer Science
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:McGraw-Hill Education
Text book image
Starting Out with Python (4th Edition)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON
Text book image
Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON
Text book image
C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON
Text book image
Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning
Text book image
Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education