Draw a flowchart which will compute the bonus of an employee . If the employees monthly salary is less than 1,000 pesos. the bonus is 50% of the salary. For employees with salary is greater than 1,000 pesos the bonus is 1,000. Print out the name and corresponding bones of the employee. Provide algorithm for this.
input
name \\ employee name
s \\ employee salary
b \\ bonus
If s<1000 then
b=0.5*s
else if s>1000 then
b=1000
output
Print name, s
Comments
Leave a comment