You are on page 1of 5

ReadData

Read NoOfHours, RatePerHour

Exit
Payroll Control

Calculate Salary
ReadData

GrossSalary =
CalculateSalary

NoOfHours * RatePerHour

PrintSalary

Exit

PrintSalary
Until NoMoreEmployees

Print GrossSalary

End

Exit

Shows algorithms and flowchart

ALGORITHM PAYROLL Control Module

FLOWCHART

PAYROLL Control

1. Repeat Process ReadDate Process CalculateSalary Process PrintSalary Until NoMoreEmployess

ReadData

CalculateSalary

PrintSalary

2. End

Until NoMoreEmployees

End

Shows algorithms and flowchart

ALGORITHM ReadData Module

FLOWCHART

1. Read NoOfHours, RatePerHour

ReadData

2. Exit

Read NoOfHours, RatePerHour

Exit

Shows algorithms and flowchart

ALGORITHM CalculateSalary Module

FLOWCHART

1. GrossSalary = NoOfHour * RatePerHour 2. Exit

Calculate Salary

GrossSalary = NoOfHours * RatePerHour

Exit

Shows algorithms and flowchart

ALGORITHM PrintSalary Module

FLOWCHART

1. Print Grosssalary 2. Exit

PrintSalary

Print GrossSalary

Exit

You might also like