// pgm13 -- modified employee program with while loop // 9/19/16 #include #include using namespace std; int main() { // define variables string first, last; const int NUM_EMPS=3; int idnum; double rate,hours,pay; // read in data for 3 employees int num=0; while (num> first; cout << "Enter last name: "; cin >> last; cout << "Enter id number: "; cin >> idnum; cout << "Enter hours worked and rate of pay: "; cin >> hours >> rate; // calculate pay pay = hours * rate; // print everything cout << "Name: " << first << ' ' << last << " id: " << idnum << " Hours: " << hours << " rate: " << rate << endl; cout << "pay for this employee is: " << pay << endl; num++; } return 0; }