codes
codes
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.