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 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
In each iteration, multiply a random number between and to the current element.
Store the result in a new array w
Array Modification:
Ensure that is a column array, the that you created in and used in
Create a new array where the first column is and the second column is the cube of each element in see the table for an example, your array will not have headers!
table
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
