5) According to the Turkish Seismic Design Code (TSDC 2019), the concrete compressive strength of an existing
building ($f_{cm}$) is determined by considering uniaxial compression tests performed on concrete core specimens. The
concrete compressive strength is defined as:
$f_{cm} = \text{Maximum} (0.85f_{c,mean}; f_{c,mean} - StDev)$
where, $f_{c,mean}$ is the mean compressive strength and StDev is the standard deviation of the test results.
$f_{c,mean} = \frac{\sum_{i=1}^{n} f_{ci}}{n}$, $StDev = \sqrt{\frac{\sum_{i=1}^{n} (f_{ci} - f_{c,mean})^2}{n-1}}$ (n is the number of tests)
A series of tests are carried out and the following compressive strength values (in MPa unit) are obtained:
tests = [22, 26, 20, 24, 28, 18, 30, 15, 32, 26]
Prepare a script that has three functions for calculating the $f_{c,mean}$, StDev and $f_{cm}$ values, respectively. Use your
functions with the given list tests, and print out the test data and the results on the screen.
Sample printout format:
Tests: [22, 26, 20, 24, 28, 18, 30, 15, 32, 26]
Mean compressive strength: 24.10
Standard deviation: 5.38
Concrete compressive strength: 20.48