Lima Homework
Lima Homework
A company calculates bonuses for employees based on their years of service and
performance rating. The rules are as follows:
1. If an employee has worked for 10 years or more and has a performance rating of 5,
they receive a bonus of $1000.
2. If an employee has worked for 10 years or more and has a performance rating of 3
or 4, they receive a bonus of $500.
3. If an employee has worked for less than 10 years and has a performance rating of
5, they receive a bonus of $300.
4. In all other cases, the employee receives no bonus.
Write the pseudocode for this process, then convert it into Python.
Question 2
A library calculates late fees based on the number of days a book is overdue:
Write the pseudocode for this process, then convert it into Python