Question: .Using C++ Read in the values into the array. The last value is a 0 and is NOT one of the values to be used
.Using C++ Read in the values into the array. The last value is a 0 and is NOT one of the values to be used in any of the calculation below. The input is found in array.data
2. Print out all the values in the array with no more than 10 numbers per output line.
3. Print out the average of the set of numbers.
4. Print out how many values are larger than the average and how many are smaller than the average. Pass average as a parameter.
5. Convert every negative number to a positive number. Print out the array.
6. Print out the average of the set of numbers.
7. How many numbers in the array are multiples of 7 and 13?
8. How many values in the array are greater than the 10th element in the array?
8. Find the largest number and print out the number and its position.
10. Find the smallest number and print out the number and its position.
11. Zero out all even value numbers in the array and print out the array.
12. Print out the new average for the new array.
13. Create a second array. Copy all the data elements from the first array to the second array. Print out the second array. You will pass two arrays to this function.
14. Now copy all the data elements from the first array to the second array in reverse order. Print out the second array. You will pass two arrays to the reverse function.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
