hmmmmmm... not sure what you're trying to do with that algorithm. I had something a little more like this in mind. I'm just going to punch out the mainline algorithm in C++, so if you want the pseudocode, let me know.

#include <iostream>
#include <cstdlib>

using namespace std;

double calcEmp();
const int EmployeeNum = 25;

int main()
{
double totalInc=0;
for(counter=0;counter<EmployeeNum;counter++)
{
totalInc += calcEmp();
}

cout << "The final payroll for all 25 employees is: " << totalInc;
return 0;
}

double calcEmp()
{
double empPay, finalPay;
cout << "Please enter the employee's pay in dollar amt: ";
cin >> empPay;
finalPay = empPay+2*empPay;
return(finalPay);
}

yeah... somethin like that. Now if only I could do my OWN homework!! hahahaha.