WSQ 10 List of Numbers

In this WSQ I had to create a program that ask for numbers and then show them as a list, the total, average and standard deviation of them.

So I used a for loop with a array to ask for the numbers, the array was the quantity of numbers I would like to use for that program, so I could modify it for whatever I want to.

Then, I created the functions Total, Average and Std. Dev., the Total function could be used for the Average and the Average could be used for the Standard Deviation.

Captura de pantalla 2016-04-05 a las 8.38.21 p.m.

When it runs looks like this:

Captura de pantalla 2016-04-05 a las 8.38.44 p.m.

As you can see, this is an “easy” program but you have to make it easy to write, using functions, loops and arrays.

BRkj4jM_700wa_0

TC101

WSQ10

CC BY-SA 4.0 WSQ 10 List of Numbers by josequirogablog is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.