This code is must of all, arrays and function. We needed to create a program that asks the user for 10 numbers (floating point). Store those numbers in a list. Show to the user the total, average and standard deviation of those numbers.
Also you will need the cmath library for this one in the Standard deviation. If you don’t know what it is, look in here.
To get the 10 numbers with an array, you will use const int which is a constant integer which will be NUMBER_OF_NUMBERS = 10, so it will not change in the entire code.
To get all the numbers you’ll use an array and the «for loop» and they will save it in x[i].
The use a function func (float numbers, number_of_numbers) with all the procedure that are required.
Here’s my GitHub link for my Code.