Question: C++ Programming. Code Blocks or Xcode. 1-D Array Operations Program You are to write a program that will manipulate arrays using functions. Recall arrays have

 C++ Programming. Code Blocks or Xcode. 1-D Array Operations Program You

C++ Programming. Code Blocks or Xcode.

1-D Array Operations Program 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) 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

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!