Question: using C++ Create an array of numbers and storing input into an array Processing array contents Using arrays as function arguments 1) Write a program
using C++ Create an array of numbers and storing input into an array
- Processing array contents
- Using arrays as function arguments
1) Write a program that will ask the user to enter 10 integers, between 0 - 50, which are stored in an array.
2) Create variables to store the number of integers entered that are greater than or equal to 25 and the number of integers that are less than 25. For instance, if the integers entered are 1, 34, 12 & 45, there are 2 numbers greater than 25 and 2 numbers less than 25. Print the results.
3) Write a function to Calculate and return the average of the numbers entered in the array.
- NOTE: Write the function avgArray, which should be passed the array created above and the size of the array. It should then calculate and return the average of the numbers entered.
- Refer to section 8.8 - Arrays as a Function Arguments for examples of this.
3) The program should display the average of all of the integers.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
