This assignment is to create a C++ Program that will store 10 integers into an array. Only accept integers between -100 and 100. Display those integers. You must then square those integers by calling a function to square each individual integer. That function must be called, square() and its only parameter should be the integer that you want to square. Display those integers. Please note that you may only have one array. You must then take the total of the squared integers and get the average. Here is a sample run.
The ten numbers entered in are: 1 2 3 4 5 6 7 8 9 10
Those same numbers squared are: 1 4 9 16 25 36 49 64 81 100
The total of the squared numbers is: 385
The average of the squared numbers is: 38