A company has a list of employees with their corresponding salaries and years of experience.
The company wants to give a bonus to employees based on their years of experience and
salary. The company has the following criteria for the bonus:
1. Employees with less than 5 years of experience receive a bonus of 5% of their salary.
2. Employees with 5 to 10 years of experience (inclusive) receive a bonus of 10% of their
salary.
3. Employees with more than 10 years of experience receive a bonus of 15% of their
salary.
Additionally:
● If the salary is above $100,000, the employee gets an extra $1,000 bonus on top of the
calculated bonus.
● The program should calculate the total bonus for each employee and print out the name
of the employee, their original salary, and the total bonus they will receive.
The employee data is stored in two parallel arrays:
● employees[]: An array containing the names of the employees.
● salaries[]: An array containing the corresponding salaries of the employees.
● yearsOfExperience[]: An array containing the corresponding years of experience of
the employees.