### PAYROLL

Could somebody help me out with the following program please.
Everythings looks good and running beside Calculating Payroll...choice 2 and Report printing on choice 3.
 ``123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179`` ``````#include #include #include #include using namespace std; //function prototype void GetData(string FullNamef[], int EmployeeNumberf[], float HoursWorkedf[], float HourlyRatef[], int &Indexf); void ComputePay(float HoursWorkedf[], float HourlyRatef[], float TotalPayf[], float &TotalPayrollf, int Indexf); void PrintResults(string FullNamef[],int EmployeeNumberf[],float HoursWorkedf[], float HourlyRatef[],float TotalPayf[], float &TotalPayrollf, int Indexf); int menu(); //main body //global constants const int MAXSIZE = 20; int main() { //local identifiers string FullName[MAXSIZE]; int EmployeeNumber[MAXSIZE]; float HoursWorked[MAXSIZE]; float HourlyRate[MAXSIZE]; float TotalPay[MAXSIZE]; float TotalPayroll = 0.0; int Index = 0; int DesignCode; char Another='y'; int choice; int n; //input module do { DesignCode=menu(); switch(DesignCode) { case 1://GET DATA GetData(FullName, EmployeeNumber, HoursWorked, HourlyRate, Index); break; case 2://GROSS PAY ComputePay(HoursWorked, HourlyRate, TotalPay, TotalPayroll,Index); break; case 3://PRINT REPORT PrintResults(FullName, EmployeeNumber, HoursWorked, HourlyRate, TotalPay, TotalPayroll, Index); break; case 4://EXIT cout<<"Thank you very much...GOODBYE....!!!"<>choice; return choice; } void GetData(string FullNamef[], int EmployeeNumberf[], float HoursWorkedf[], float HourlyRatef[], int &Indexf) { string FirstName, LastName, FullName; char Another; do { cout<<"Please enter your first and last name separated by a space?\n"; cin >> FirstName >> LastName; FullName = FirstName + " " + LastName; FullNamef[Indexf] = FullName; cout<<"Please enter your four digit Employee Number?\n"; cin>>EmployeeNumberf[Indexf]; cout<<"How many hours did you work last week?\n"; cin>>HoursWorkedf[Indexf]; cout<<"What is your hourly rate?\n"; cin>>HourlyRatef[Indexf]; cout<<"Do you have another employee to process?\t"; cin>>Another; if((Another=='Y')||(Another=='y')) { Indexf++; system("PAUSE"); system("CLS"); }//end of if }while((Another=='Y')||(Another=='y')); //end of while return; } void ComputePay(float HoursWorkedf[], float HourlyRatef[], float TotalPayf[], float &TotalPayrollf, int Indexf) { //Local Identifiers TotalPayrollf = 0; float RegularPay, OverTimePay, DoubleTimePay; //computations for(int i=0; i<=Indexf; i++) { if (HoursWorkedf[i] <=40) TotalPayf[i]=HourlyRatef[i]*HoursWorkedf[i]; else if (HoursWorkedf[i] <=60) { RegularPay = HourlyRatef[i]*40; OverTimePay = (HoursWorkedf[i]-40)*HourlyRatef[i]*1.5; TotalPayf[i] = RegularPay + OverTimePay; } else { RegularPay = HourlyRatef[i]*40; OverTimePay = HourlyRatef[i]*1.5*20; DoubleTimePay =(HoursWorkedf[i]-60)*HourlyRatef[i]*2; TotalPayf[i]= RegularPay + OverTimePay + DoubleTimePay; } TotalPayrollf += TotalPayf[i]; } return; } void PrintResults(string FullNamef[],int EmployeeNumberf[],float HoursWorkedf[], float HourlyRatef[],float TotalPayf[], float &TotalPayrollf, int Indexf) { //local identifiers float RegularPay = 0.0, OverTimePay = 0.0, DoubleTimePay = 0.0; cout<