A certain company plan to give a 10% bonus to each of its employees at the end of every year. If an employee has been working 10/more years at the company, she/he is to get an additional birr 100. Draw a flowchart of an algorithm to calculate and print the bonus for a given employee.
function main()
output "Enter the employee salary: "
input salary
output "Enter years: "
input years
bonus = salary * 0.1
if years >= 10 then
bonus = bonus + 100
end If
output "Bonus is: " + bonus
end function
Comments
Thank you for your helping
Leave a comment