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
Academic Honesty!
It is not our intention to break the school's academic policy. Posted solutions are meant to be used as a reference and should not be submitted as is. We are not held liable for any misuse of the solutions. Please see the frequently asked questions page for further questions and inquiries.
Kindly complete the form. Please provide a valid email address and we will get back to you within 24 hours. Payment is through PayPal, Buy me a Coffee or Cryptocurrency. We are a nonprofit organization however we need funds to keep this organization operating and to be able to complete our research and development projects.