Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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 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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Discrete Mathematics and Its Applications

Authors: Kenneth H. Rosen

7th edition

0073383090, 978-0073383095

More Books

Students also viewed these Computer Engineering questions

Question

understand what working means to workers;

Answered: 1 week ago

Question

what are the 4 signs associated with Horner's syndrome?

Answered: 1 week ago

Question

In Exercises 1-2 find the output of the given circuit. 1. 2.

Answered: 1 week ago