This exercise is available at
`https://study.find-santa.eu/exercises/c/arrays/`.

For the sake of the environment, please avoid printing these instructions in the future. Thank you!

For the sake of the environment, please avoid printing these instructions in the future. Thank you!

**Total Resistance**

Develop a program that calculates the total resistance of parallel resistors like in the schematic below.$n$

The program should use a separate function for the actual calculation.- In
`main(.)`

) deal with user input and output. Ask the user to enter the number of parallel resistors of the circuit and then ask for the resistance of each resistor using a`for`

loop. - The other function should take an array of resistances and the length of this array as input and return the total resistance.

$${R}_{total}=\frac{1}{\sum _{i=1}^{n}\frac{1}{{R}_{i}}}$$

Name the source file:`parallel_resistors.c`- In
**Count Matching Elements**

Write a function`size_t count_matches(int array[], size_t dimension, int number)`

that returns how many times the given number occurs in the array. For example

Name the source file:`int array[] = {4, 1, 7, 5, 4, 1, 4, 2, 7}; count_matches(array, 9, 5); // returns 1 count_matches(array, 9, 4); // returns 3`

`count_matches.c`**Find Maximum**

Write a function`int max(int array[], int dimension)`

that takes an array of integers and its dimension and returns the array's highest number. Try to determine a way to figure out the number of elements in the array inside the function`max(.)`

. You may assume that the passed array is never empty.

Name the source file:`int array[] = {4, 1, 7, 5, 4, 1, 4, 2, 7}; max(array, 9); // returns 7`

`find_max.c`