//Jordan Steffen //stej4019 //201-807 //to provide employee adding //updating, and wage reporting //functionality #include using namespace std; void menu(int &option); void add(int ids[], string names[], float wages[], int size, int &loc); void updateName(string names[], int ids[], int size, int &loc); void updateWage(float wages[], int ids[], int size, int &loc); void displayPaycheck(float wages[], int ids[], int size, int &loc); bool search3(const int ids[], const int size, int key, int &loc); int main() { int loc; int option; const int size = 100; int ids[size] = {-1}; string names[size]; float wages[size]; int choicesentinel = 1; while(choicesentinel != 5) { menu(option); if (option == 1) { add(ids, names, wages, size, loc); } if (option == 2) { updateName(names, ids, size, loc); } if (option == 3) { updateWage(wages, ids, size, loc); } if (option == 4) { displayPaycheck(wages, ids, size, loc); } if(option == 5) { choicesentinel = 5; } } return 0; } void menu(int &option) { cout<<'\n'<<'\n'<<"---------------------------------"<>option; cout<<"---------------------------------"<>idsTemp; if (search3(ids, size, idsTemp, loc)) { cout<<"This ID number already exists, please try again."<>namesTemp; cout<<"Please enter new employee's wage : "; float wagesTemp; cin>>wagesTemp; } } void updateName(string names[], int ids[], int size, int &loc) { cout<<"Enter employee's ID #"; int idsTemp; cin>>idsTemp; if (search3(ids, size, idsTemp, loc) { wages[loc] = wagesTemp; names[loc] = namesTemp; cout<<"Employee's old name = "<>namesTemp; } else { cout<<"This employee ID does not exist, please try again."<>idsTemp; if search3(ids, size, idsTemp, loc) { wages[loc] = wagesTemp; names[loc] = namesTemp; cout<<"Employee's old wage = "<>wagesTemp; } else { cout<<"This employee ID does not exist, please try again."<>idsTemp; if search3(ids, size, idsTemp, loc) { cout<<"Enter employee's total hours : "; int hours; cin>>hours; if(hours > 40) { float pay; pay = 40 * wages[loc] cout<<'\n'<<"*******PayCheck Report*********"<