DEI Manufacturing company plans to give a year-end bonus to each of their employees. Draw a flowchart which will compute the bonus of an employee. Consider the following conditions: If the employee`s monthly salary is less than P2000.00, the bonus is 50% of the salary; for employees with salary greater than P2000.00, the bonus is P1500.00. Print the name and the corresponding bonus for each employee. Write the equivalent algorithm. (Pseudocoding and Flowcharting)
Start
Declare variables employeeName,employeeMonthlySalary, bonus
Read employeeName
Read employeeMonthlySalary
If employeeMonthlySalary<=2000.00 then
bonus=employeeMonthlySalary*0.5
else
bonus=1500.00
Print name
Print employeeMonthlySalary
Print bonus
Stop
Comments
Leave a comment