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.
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.
Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
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: 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.
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 4 steps with 7 images
Knowledge Booster
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.Recommended textbooks for you
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education