Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

Cales - Act2 - Comprog Ict 11 - 1

Download as pdf or txt
Download as pdf or txt
You are on page 1of 5

Activity No.

Name: Rose Mae D. Cales Year and Section: ICT 11 – 1

Input Specification:

Employees Name:
Department Code:
Basic Salary:
OTime Pay:
SSS:
Tax:

Output Specification

ABC Supermarket

Employee Department Gross Total Net


Name Pay Deduction Pay

Requirements:

1. Limit 5 detail lines per page


2. Compute the following
a. Gross Pay = Basic Salary + OT pay
b. Deduction = SSS + TAX
c. Net Pay = Gross Pay - Deduction
3. Test the Department Code
Department Code Department
1 Human Resource
2 EDP
3 Sales
4 Engineering
Variables used:
SW = Switch DEPT = Department BS = Basic Salary
LN = Line Number EOF = End of File OTP = OTime Pay
GP = Gross Pay RC = Read Card DEPTC = Department Code
TD = Total Deduction HDG = Heading CONVERSION = (Test Department
NP = Net Pay COMP = Compute Code to Department)

START

SW = Ø
LN = Ø
GP = Ø
TD = Ø
NP = Ø
DEPT = Ø

PROCESS

YES
SW = Ø

NO

END
PROCESS

HDG

RC

Print “ABC Supermarket”;


print newline; YES
print; EOF SW = 1
print newline
print “Employee Name”,
“Department”, “Gross Pay”, “Total NO
Deduction”, “Net Pay”;

NO
LN = 0

YES
EXIT

HDG

TEST

COMP

DETAILS

EXIT
COMP

GP = BS + OTP

TD = SSS + TAX

NP = GP – TD
CONVERSION

YES NO
DEPTC < 2

NO YES NO
YES
DEPTC = 1 DEPTC = 3

DEPT = Human DEPT =


DEPT = EDP DEPT = Sales
Resource Engineering

EXIT
DETAILS

Print Employee Name, Department, Gross Pay,


Total Deduction, Net Pay

GP = Ø
TD = Ø
NP = Ø
DEPT = Ø

LN = LN + 1

YES
LN == 5 LN = 0

NO

EXIT

You might also like