Question: Prime Number Check: Check if any number in the array y is a prime number. If there are prime numbers, display a messages The prime

Prime Number Check:
Check if any number in the array y is a prime number.
If there are prime numbers, display a messages "The prime numbers of this artay are " followed by the prime numbers.
If there are no prime numbers, display: "There are no prime numbers in this array:"
Loop wieh Random Number Operation:
Write a loop that iterates through each element of the array y.
In each iteration, multiply a random number between 20 and 30 to the current element.
Store the result in a new array w.
Array Modification:
Ensure that y is a column array, (the y that you created in Q3 and used in Q4).
Create a new array where the first column is y and the second column is the cube of each element in y.(see the table for an example, your array will not have headers!)
\table[[y,y3
Prime Number Check: Check if any number in the

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!