Exercise

# Vector Operations on a Company Review

The work of eight employees of a company is being reviewed. Their average number of business hours per day in each quarter of the year is analyzed.

As you can see in the editor, the results are assigned to variables `QR1`

, `QR2`

, `QR3`

and `QR4`

for quarter 1 to 4, respectively.

You want to know the average number of business hours per day over the whole year. To do so, the mean of the 4 quarters has to be calculated.

Remember that **vector operations** happen element-wise to each element of the vector.

Instructions

**100 XP**

- Calculate the sum of the responses of
`QR1`

,`QR2`

,`QR3`

and`QR4`

and assign the result to the variable`sum_quarters`

. - Calculate the mean of the responses of the four quarters by dividing
`sum_quarters`

by`4`

and assign the result to`mean_quarters`

.