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:
```
Plant1-is10inches 'high.
Plant-2'is-8 inches'high.
Plant-3 is 66 inches 'high.
```
Goal: Declare a function with an array as a

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!