Question: Write the ans in c++ language. 26. (12 pts) Add a function prototype, function call statement and function definition to the ollowing program. The name

 Write the ans in c++ language. 26. (12 pts) Add a

Write the ans in c++ language.

26. (12 pts) Add a function prototype, function call statement and function definition to the ollowing program. The name of the void function that is to be added is FillArray This tunction is to read in values from standard input (cin) to fill all of the array elements The void function has the following two parameters: 1) a floating-point one-dimensional array 2) an integer value representing the number of array elements to read in. In the function definition use a for loop to read in a value for each elementicomponent of the array Use cout to prompt for a value and cin for reading the value. Assume that all values are entered correctly #include using namespace std; const int NUM 100; /I dimension size: number of values to read // Place the function prototype below this line int main() float numbers [NUM] /1 one-dim. Array for holding floats entered // Place the function call statement below this line return 0 // Place the function definition below this line

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 Databases Questions!