Question: Write an algorithm and draw a flowchart to a) read an employee name (NAME), overtime hours worked (OVERTIME), hours absent (ABSENT) and b) detemine

Write an algorithm and draw a flowchart to a) read an employee 

Write an algorithm and draw a flowchart to a) read an employee name (NAME), overtime hours worked (OVERTIME), hours absent (ABSENT) and b) detemine the bonus payment (PAYMENT). ALGORITHM: Bonus Schedule Step 1: Input NAME,OVERTIME.ABSENT OVERTIME (23)*ABSENT Step 2: if (OVERTIME (2/3)*ABSENT > 40) then PAYMENT + 50 Bonus Paid else if (OVERTIME-(2/3)*ABSENT > 30) then >40 hours S50 PAYMENT - 40 >30 but s 40 hours $40 else if (OVERTIME-(2/3)"ABSENT > 20) then >20 but < 30 hours >10 but s 20 hours s 10 hours $30 PAYMENT - 30 $20 else if (OVERTIME-(2/3)*ABSENT > 10) then S10 PAYMENT 20 else PAYMENT E 10 endif Step 3: Print "Bonus for", NAME "is S". PAYMENT

Step by Step Solution

3.28 Rating (154 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Computer Engineering Questions!