Question: Goal: Declare a function with an array as a parameter. Assignment: Write the code for a function named displayPlantHeights. The function should take two parameters:
Goal: Declare a function with an array as a parameter.
Assignment: Write the code for a function named displayPlantHeights. The function should take two parameters:
an int array containing the heights of plants
an int representing the size of the array Goal: Declare a function with an array as a parameter.
Assignment: Write the code for a function named displayPlantHeights. The function should take two parameters:
an int array containing the heights of plants
an int representing the size of the array
It should display the height of each plant as shown here:
Plantisinches 'high.
Plantis inches'high.
Plant is inches 'high.
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
