I've been working on this code for a while. I've got almost everything down except for the selection sort. It does not sort and displays garbage for empID instead like follow in the output file:
PAYROLL PROCESSING
Employees in order entered: (original order)
Employee Number Hours Worked PayRate per Hour Wages
-858993460 37.00 100.50 3718.50
-858993460 20.00 7.50 150.00
-858993460 35.00 12.50 437.50
-858993460 10.00 250.00 2500.00
-858993460 4.00 700.00 2800.00
-858993460 40.00 10.00 400.00
-858993460 18.00 27.50 495.00
Employees in ascending order: (supposed to be selection sort)
Employee Number Hours Worked PayRate per Hour Wages
-858993460 37.00 100.50 3718.50
-858993460 20.00 7.50 150.00
-858993460 35.00 12.50 437.50
-858993460 10.00 250.00 2500.00
-858993460 4.00 700.00 2800.00
-858993460 40.00 10.00 400.00
-858993460 18.00 27.50 495.00
After hours of fiddling with the code, I really don't understand how it can be corrected. I would love to have some guidance. Below is my code, bolded parts are related to selection sort. Thank you!!