Menu

[solved]-Write Program Manipulate Arrays Using Functions Recall Arrays C Operations Arrays Handle 2 Q39017790

C++please
You are to write a program that will manipulate arrays using functions. Recall arrays have no C++ operations. Your arrays shoYou are to write a program that will manipulate arrays using functions. Recall arrays have no C++ operations. Your arrays should handle up to 25 integer numbers. Declare array A and array b. Fill first array A.: Read in the values into the array A. The input is found input file “numbers2.dat”. Fill second array B: Set up array B with 25 random numbers each between 1 and 100. (no zeroes) lage Print out both arrays with labels. (Define only one function that prints only one array.) Write a function that will add corresponding locations of array A with B and put results into C. Print out C. Write a function that will multiply corresponding locations of array A with B and put results into C. Print out C. Find the average for array A and the average of array B. Print both averages with labels. Find the largest value in each array. Print both. Find the smallest value in each array. Print both. Find the average of the ‘odd’ numbers in each array. Print both. Show transcribed image text You are to write a program that will manipulate arrays using functions. Recall arrays have no C++ operations. Your arrays should handle up to 25 integer numbers. Declare array A and array b. Fill first array A.: Read in the values into the array A. The input is found input file “numbers2.dat”. Fill second array B: Set up array B with 25 random numbers each between 1 and 100. (no zeroes) lage Print out both arrays with labels. (Define only one function that prints only one array.) Write a function that will add corresponding locations of array A with B and put results into C. Print out C. Write a function that will multiply corresponding locations of array A with B and put results into C. Print out C. Find the average for array A and the average of array B. Print both averages with labels. Find the largest value in each array. Print both. Find the smallest value in each array. Print both. Find the average of the ‘odd’ numbers in each array. Print both.

Expert Answer


Answer to You are to write a program that will manipulate arrays using functions. Recall arrays have no C++ operations. Your array… . . .

OR


Leave a Reply

Your email address will not be published. Required fields are marked *