Question: Define a function named myFunc that takes an integer array X[] of size equal to 10 as formal parameter and performs the following: Initialize

Define a function named myFunc that takes an integer array X[] of size equal to 10 as formal parameter and

Define a function named myFunc that takes an integer array X[] of size equal to 10 as formal parameter and performs the following: Initialize elements of array X with 20. (5 points) Declares local 1D array Y of size equal to 40 and prompts the user to fill the array Y with integers. (10 points) Using a while loop, the function counts and prints the values greater than or equal to 20 in the array Y. The function then returns the count. (10 points)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Certainly Heres the function myFunc in Python fulfilling the specified requirements python def myF... View full answer

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!