Exercise 1. CalculateFreeDailyHours
The CalculateFreeDailyHours() method returns the number of free daily hours of a bachelor student.
July and August are studying-free months. In the other months, the student spends 3 hours per day studying for each course they are registered in.
Do not worry about invalid inputs -- e.g. month -1 or 15.
Exercise 2. LargestNumber
The LargestNumber() method returns the largest number from the array.
You do not need to worry about empty arrays.
Exercise 3. GetDotPosition
The GetDotPosition() method returns the position of the first occurrence of the dot “.” symbol in a string.
It returns -1 in case the string does not contain a dot.
You do not need to worry about empty strings.
Exercise 4. ReachedNationalAverageSalary
The ReachedNationalAverageSalary() method sums the annual salaries from an array and returns whether the total reached the national average (€50.000,00 per person per year).
There may be a requirement to skip people who earn a low annual salary (max. of €15.000,00).
Exercise 5. CountPrimeNumbers
The method CountPrimeNumbers() returns the number of prime numbers from an array passed as parameter.