. An ABC company’s plans to give a 6% year-end bonus to each of its employees
earning Rs 6,000 or more per month, and a fixed Rs. 250 bonus to the remaining
employees. Write an algorithm for calculating the bonus for an employee.
Start
Declare Real employeeEarning
Declare Real bonus
Set bonus=250
Display "Enter employee earning: "
Input employeeEarning
if employeeEarning>=6000 then
bonus=employeeEarning*0.06
end if
Display "The bonus for an employee: Rs.",bonus
Stop
Comments
Leave a comment