1. Read thoroughly the question below. Produce a pseudo code and flow chart for solving the problem.

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
1. Read thoroughly the question below. Produce a pseudo code and flow chart for solving the problem.
The company has three types of employees:
G - fixed paid employees; K- Contract workers; and S - subcontract workers.
The input to this problem consists of the employee name, employee number, and employee code: G, K or
S. Follow -up input depends on the value of the employee code and the associated category.
Fixed paid employees will be paid a fixed amount of payment at the end of each working month. Fixed -
paid employees can be categorized under P: manager or B: non -manager.
Only non -managerial category employees are allowed to claim overtime pay. For the first 10 hours of
overtime, employees will be paid at RM15 per hour. For each subsequent hour, employees will be paid at
RM12 per hour. However, in a month an employee can claim payment of up to 20 hours of overtime.
Claims for payment for excessive hours of time will be rejected. For this category net salary is calculated
as: fixed salary + overtime salary.
Contract workers will be paid according to the number of hours worked and based on category:
B- Recovery; S- Maintenance
Recovery work will be paid an average of RM20 per hour with claims of up to 100 hours. Maintenance
work will be paid at RM10 per hour for the first 50 hours and RM5 per hour for the next hour. The
maximum amount that can be claimed is also limited to 100 hours.
Subcontract workers will be paid according to the number of toys assembled. Subcontract employees can
only assemble toys from one of the categories:
B- Large size toy; S- Medium size toy; K- Small size toy
Each large size toy successfully assembled will be paid RM8 each; medium size toy will be paid RM5
each, and small size toys will be paid RM2 each.
At the end of the process display the employee's name, employee number and income for the month. Use
an appropriate selection control structure to each of the previously described cases.
Test your program to make sure every condition is correctly executed.
Transcribed Image Text:1. Read thoroughly the question below. Produce a pseudo code and flow chart for solving the problem. The company has three types of employees: G - fixed paid employees; K- Contract workers; and S - subcontract workers. The input to this problem consists of the employee name, employee number, and employee code: G, K or S. Follow -up input depends on the value of the employee code and the associated category. Fixed paid employees will be paid a fixed amount of payment at the end of each working month. Fixed - paid employees can be categorized under P: manager or B: non -manager. Only non -managerial category employees are allowed to claim overtime pay. For the first 10 hours of overtime, employees will be paid at RM15 per hour. For each subsequent hour, employees will be paid at RM12 per hour. However, in a month an employee can claim payment of up to 20 hours of overtime. Claims for payment for excessive hours of time will be rejected. For this category net salary is calculated as: fixed salary + overtime salary. Contract workers will be paid according to the number of hours worked and based on category: B- Recovery; S- Maintenance Recovery work will be paid an average of RM20 per hour with claims of up to 100 hours. Maintenance work will be paid at RM10 per hour for the first 50 hours and RM5 per hour for the next hour. The maximum amount that can be claimed is also limited to 100 hours. Subcontract workers will be paid according to the number of toys assembled. Subcontract employees can only assemble toys from one of the categories: B- Large size toy; S- Medium size toy; K- Small size toy Each large size toy successfully assembled will be paid RM8 each; medium size toy will be paid RM5 each, and small size toys will be paid RM2 each. At the end of the process display the employee's name, employee number and income for the month. Use an appropriate selection control structure to each of the previously described cases. Test your program to make sure every condition is correctly executed.
Expert Solution
steps

Step by step

Solved in 3 steps with 2 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY