WSQ10

Captura de pantalla 2016-04-07 a las 14.17.31Captura de pantalla 2016-04-07 a las 14.17.48

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.


Responder

Introduce tus datos o haz clic en un icono para iniciar sesión:

Logo de WordPress.com

Estás comentando usando tu cuenta de WordPress.com. Salir /  Cambiar )

Google photo

Estás comentando usando tu cuenta de Google. Salir /  Cambiar )

Imagen de Twitter

Estás comentando usando tu cuenta de Twitter. Salir /  Cambiar )

Foto de Facebook

Estás comentando usando tu cuenta de Facebook. Salir /  Cambiar )

Conectando a %s