Employees at a certain company


Employees at a certain company get a bonus at the end of the year based on years of service. The bonus is a percentage of their annual salary determined as follows.
Less than 5 years 2%
5 to 9 years 4%
10 to 19 years 7%
20 years or more 12%
Write a pseudocode algorithm that will input the years employed and the salary, and will calculate and print the bonus rate and bonus amount. Use structured pseudocode as demonstrated in the lectures for code, ensure that all variables are declared, prompt the user for the appropriate input, and display a meaningful output message. Make sure that the years and salary are both greater than 0.