Flowchart: Draw the flowchart of the above algorithm?

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter8: Arrays And Strings
Section: Chapter Questions
Problem 20PE
icon
Related questions
Question

Flowchart: Draw the flowchart of the above algorithm?

Example 7: Write and algorithm and draw a flowchart to
a) read an employee name (NAME), overtime hours worked (OVERTIME), hours
absent (ABSENT) and
b) determine the bonus payment (PAYMENT).
Bonus Schedule
OVERTIME – (2/3)*ABSENT
Bonus Paid
>40 hours
$50
>30 but < 40 hours
$40
>20 but < 30 hours
$30
>10 but < 20 hours
$20
< 10 hours
$10
Page:
16 of 16
Automatic Zoom
Transcribed Image Text:Example 7: Write and algorithm and draw a flowchart to a) read an employee name (NAME), overtime hours worked (OVERTIME), hours absent (ABSENT) and b) determine the bonus payment (PAYMENT). Bonus Schedule OVERTIME – (2/3)*ABSENT Bonus Paid >40 hours $50 >30 but < 40 hours $40 >20 but < 30 hours $30 >10 but < 20 hours $20 < 10 hours $10 Page: 16 of 16 Automatic Zoom
Algorithm: Step 1:
Step 2:
Input NAME,OVERTIME,ABSENT
if OVERTIME-(2/3)*ABSENT > 40
then PAΥΜΕNT = 50
else if OVERTIME–(2/3)*ABSENT > 30
then PAΥΜΕNT - 40
%3D
else if OVERTIME–(2/3)*ABSENT > 20
then PAYΜΕNΤ - 30
else if OVERTIME-(2/3)*ABSENT > 10
then PAΥΜΕNT - 20
else PAYΜΕΝΤ - 10
endif
endif
endif
endif
Print Βonus for" , ΝΑΜΕ "is $, PAYMΕΝT
Step 3:
Page:
16 of 16
- | +
Automatic Zoom
Transcribed Image Text:Algorithm: Step 1: Step 2: Input NAME,OVERTIME,ABSENT if OVERTIME-(2/3)*ABSENT > 40 then PAΥΜΕNT = 50 else if OVERTIME–(2/3)*ABSENT > 30 then PAΥΜΕNT - 40 %3D else if OVERTIME–(2/3)*ABSENT > 20 then PAYΜΕNΤ - 30 else if OVERTIME-(2/3)*ABSENT > 10 then PAΥΜΕNT - 20 else PAYΜΕΝΤ - 10 endif endif endif endif Print Βonus for" , ΝΑΜΕ "is $, PAYMΕΝT Step 3: Page: 16 of 16 - | + Automatic Zoom
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 3 images

Blurred answer
Knowledge Booster
Concept of Flowchart
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
Computer Science
ISBN:
9780357392676
Author:
FREUND, Steven
Publisher:
CENGAGE L