Main Module
Declare numbers as integer [100]
Declare min Employee Salary as integer
Declare max Employee Salary as integer
Declare Employee Salary list Count as integer
Declare enter Employee Salary as integer
Write” Welcome to the Payroll Program
Write” This program intended use is for the user to enter a payroll“
Write” list of employee Names and Salaries into the system and the system”
Write” will output the minimum and maximum salary from the list inputted. “
Write” Calculate Min Salary & Max Salary as integer”
Call Input Module
Call Data Module
Sort Number Module
Call Min Employee Salary Module
Call Max Employee Salary Module
Call Results Module
End Main Module Input Module
Write “Enter Employee Name.”
Input Name
Write “Please enter Employee Salary as integer”
Input number
If Employee salary = 0
Display “Wrong Employee salary, please try again”
End If
End Input Module
Data Module
Set Employee list Count = 0
Set input Employee Salary = 1
While list Count <=0 and input Employee Salary <>0 Write “Enter Employee Salary:” Input Employee Salary If input Employee Salary <>0 Set Employee List Count = List Count + 1 Set Employee Salary [Employee List Count] = input Salary End if
End While
End Data Module Sort Number Module
Declare k as integer k [100]
Declare flag as integer
Declare temp as integer Set flag = 0
Set count = 0 While flag = 0 Set flag =1 For k = 1 step 1 to Count If Salary[k]