Answer to Question #240808 in Algorithms for time

Question #240808

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


1
Expert's answer
2021-09-22T23:44:05-0400
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





Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS