Challenge 17

📊

Min, Max, Mean & More

Open in Code Editor or Copy Instructions
...solutions at bottom of page...

Create a program to generate random numbers. The following should also be random:

Based on these 3 factors, your program should then generate random numbers matching this criteria. The following should be output

Examples:

If we say the values of n, s, l are 5, 10, 20 respectively, the a possible group of random numbers that could be generated could be 14, 12, 20, 19, 12

The program would output these generated numbers 14, 12, 20, 19, 12 to the user, along with the min 12, max 20, sum 77, mean 15.4 and range 8

Extension:

Calculate additional statistical values such as the mode, median, standard deviation, percentiles, interquartile range etc

Solutions

IGCSE 0478 / O-Level 2210 A-Level 9618