Two classes both have a mean mark of 60. You will write the standard deviation and the range, and let the program say which class is steadier. Then it draws both classes on one number line.
The idea. The standard deviation is the square root of the mean of the squared distances from the mean. A smaller one means the marks stay closer together.
Your tasks.
sd, return the standard deviation of values.rng, return the largest value minus the smallest.steadier to the name of the class with the smaller standard deviation.Have you tried it?
Do the tasks in the editor first, and run the checker after each one. Its hints help when a check fails. When you are ready, compare your code with this solution.
Log in to join the discussion.
Loading…