I was bored so here is ProcessManufacturingWorker():
Forgive any syntax errors its been awhile since I've done C/C++ and don't forget to get the inputs for the name, hours, and payrate.
void ProcessManufacturingWorker()
{
// This function processes a manufacturing employee. It reads the
// employee name, hours worked and pay rate, displays the production
// line menu where the user selects the product manufactured, then
// computes and displays their pay including any bonus.
// Calls: ChooseProductionLineMenu()
// ComputeHourlyPay()
// DisplayPay()
//You'll need to get the inputs for the hoursWorked and pay rate
int hoursWorked;
double hourlyRate;
string name;
////////////////////////////////
int choice = ChooseProductionLineMenu();
int numItems;
double bonus;
double regWages;
double otWages;
doublt totWages;
cout<<"How many items were made?";
cin>>numItems;
switch(choice)
{
case WAGON_LINE:
bonus = WAGON_BONUS * numItems;
break;
case SLED_LINE:
bonus = SLED_BONUS * numItems;
break;
case ROLLER_SKATE_LINE:
bonus = ROLLER_SKATE_BONUS * numItems;
break;
}
if (hoursWorked <= 40)
{
regWages = ComputeHourlyPay(hoursWorked, hourlyRate);
}
if (hoursWorked > 40)
{
otWages = ComputeHourlyPay(hoursWorked - 40, hourlyRate * OVERTIME_SCALE);
}
totWages = regWages + otWages + bonus;
DisplayPay(name, regWages, otWages, bonus, totWages);
}