A company has 100 employees who receive a monthly salary

ranged from 1000QR to 50000QR. We can represent the

employee by an array of 100 elements as follows:

double MonthS[100];

Q1: Write a for loop to fill-in the array with data.

Q2: Calculate the average salary of employees.

Q3: Find the employee number who gets the maximum salary.

Q4: Count the number of employees who gets a monthly salary

between 10000QR and 25000QR.

Q5: Decrease the salary of employees who receive the maximum

payment per month by 5000QR.

Q6: The array B represents the extra hours done by every

employee during the month. The rate per hour is 50QR for

those who get between 10000QR and 20000QR. It is 75QR

otherwise. Updated then the salary of all employees based on

the numbers of extra hours worked.

Q7: Print a histogram showing every employee number and

his/her salary.

Q8: Add a Bonus of 6.4% to every employee who worked more

than 15 extra hours in a month (Use the array B to find the extra

hours and update then the Array A).