Create an algorithm, pseudocode and flowchart about this. Blog factory will give year end bonus. Employees that have monthly salary less than 300000, they will get 50% bonus of salary. While the greater than 30,000, they will get 20000. Print name and corresponding bonus for each employee
Algorithm
Start
Step 1: Read employee's name
Step 2: Read employee's monthly salary
Step 3: If monthly salary < 300000
Step 4: Set bonus to monthly salary*0.5
Step 5: If monthly salary >= 300000
Step 6: Set bonus to 20000
Step 7: Print name
Step 8: Print bonus
Stop
Pseudocode
Start
employeeName =""
employeeMonthlySalary=0
bonus=0
Read employeeName
Read employeeMonthlySalary
If employeeMonthlySalary< 300000 then
bonus=employeeMonthlySalary*0.5
If employeeMonthlySalary >= 300000 then
bonus=20000
Print name
Print bonus
Stop
Comments
Leave a comment