- Prepare
- Tutorials
- 10 Days of Statistics
- Day 6: The Central Limit Theorem III

# Day 6: The Central Limit Theorem III

# Day 6: The Central Limit Theorem III

**Objective**

In this challenge, we practice solving problems based on the *Central Limit Theorem*. We recommend reviewing the Central Limit Theorem Tutorial before attempting this challenge.

**Task**

You have a sample of values from a population with mean and with standard deviation . Compute the interval that covers the middle of the distribution of the sample mean; in other words, compute and such that . Use the value of . Note that is the z-score.

**Input Format**

There are five lines of input (shown below):

```
100
500
80
.95
1.96
```

The first line contains the sample size. The second and third lines contain the respective mean () and standard deviation (). The fourth line contains the distribution percentage we want to cover (as a decimal), and the fifth line contains the value of .

If you do not wish to read this information from stdin, you can hard-code it into your program.

**Output Format**

Print the following two lines of output, rounded to a scale of decimal places (i.e., format):

- On the first line, print the value of .
- On the second line, print the value of .