Question I:
Generate a list of 300 random values in the range 1
–99. Determine, print, and remove duplicate values of numbers from the list that appears more than 2 times. Your program should print
- sorted original list generated randomly, (Ex: [1,1,4,4,4,5,6,6,10,10,10,10])
- duplicate values that appear more than 2 times, and (Ex : [4,4,4,10,10,10,10])
- the list without duplicates that appear more than 2 times. (Ex: [1,1,5,6,6])
Question II:
Write the missing functions myAverage, myStandardDev, myMin, and myCorrelation in the following
code. The formulas for average (mean), standard deviation and correlation are given below
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
---|---|---|---|---|---|---|
27 | 28 | 29 | 30 | 1 | 2 | 3 |
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |