So, I am having quite a lot of problems working on this program. It is suppose to be a program that uses selection sorting to sort a list of employees based on their department, and then after sorting by department it will work by salary. The problem is I can't get this code output what I want, but I have gotten it to compile. It instead gives some wonky output that isn't anywhere near what I want.
Please help!
Here's the code I currently am in the progress of working on:
Hooray! I Figured it out! Was actually a simple fix, the for loop was not suppose to be in the while loop, but after it. Now I can successfully sort the departments, now to sort the salaries as well. :)