Q1.4. Write a NumPy program to create random 2 array and size of arrays should be 1x15. In your array there should be integer numbers from 0 to 9 and by using numpy function, find common numbers in your array.

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter16: Searching, Sorting And Vector Type
Section: Chapter Questions
Problem 21PE
icon
Related questions
Question

BY USING PYTHON

Q1.4. Write a NumPy program to create random 2 array and size of arrays should be 1x15. In
your array there should be integer numbers from 0 to 9 and by using numpy function, find
common numbers in your array.
Q1.5. Write a NumPy program to generate 50 random number between 0 and 150. If your
number bigger than 100, make this number 100 and if your number smaller than 50 make this
number 50 by using numpy functions.
Q1.6. Write a NumPy program to generate 16 random integer numbers. Then convert this array
to 4x4 array. Repeat this operation and create 3 different 4x4 arrays. By getting summation of
these 3 arrays, find the average array, and calculate the maximum, minimum, mean, and
standard deviation of each line of matrix values.
Transcribed Image Text:Q1.4. Write a NumPy program to create random 2 array and size of arrays should be 1x15. In your array there should be integer numbers from 0 to 9 and by using numpy function, find common numbers in your array. Q1.5. Write a NumPy program to generate 50 random number between 0 and 150. If your number bigger than 100, make this number 100 and if your number smaller than 50 make this number 50 by using numpy functions. Q1.6. Write a NumPy program to generate 16 random integer numbers. Then convert this array to 4x4 array. Repeat this operation and create 3 different 4x4 arrays. By getting summation of these 3 arrays, find the average array, and calculate the maximum, minimum, mean, and standard deviation of each line of matrix values.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 2 images

Blurred answer
Knowledge Booster
Binary numbers
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
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning