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 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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get StartedRecommended Textbook for
Discrete Mathematics and Its Applications
Authors: Kenneth H. Rosen
7th edition
0073383090, 978-0073383095
Students also viewed these Computer Engineering questions
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
View Answer in SolutionInn App