Create a python program a. Create a user-defined array for any size n determined/chosen by the use b. Write a function that displays all prime numbers of the elements of an array and then returns all primes as a single array. Call this function to find all the prime numbers from the array in item 1a. c. Write another function that solves for the average of the elements of an array. Call this function to find the average of all prime numbers in item 1b. d. Write another function that determines the perfect squares in an array. Display the result as an ordered pair (u, v) where u is a perfect square and v is its corresponding square root. Callthis function to find all perfect squares of the array in item 1a.
I'm broke :(((
Create a python program
a. Create a user-defined array for any size n determined/chosen by the use
b. Write a function that displays all prime numbers of the elements of an array and then returns all primes as a single array. Call this function to find all the prime numbers from the array in item 1a.
c. Write another function that solves for the average of the elements of an array. Call this function to find the average of all prime numbers in item 1b.
d. Write another function that determines the perfect squares in an array. Display the result as an ordered pair (u, v) where u is a perfect square and v is its corresponding square root. Callthis function to find all perfect squares of the array in item 1a.
Step by step
Solved in 3 steps with 1 images