I am not quite sure what you are asking exactly. You have what appears to be a loop in there, but you commented it out. Was it not working for you? If it wasn't working, what was it doing wrong? Describe the problem please.
I also wanted to mention something that appears to be a common error with these types of assignments. You attempt to apply pay rates times all the hours someone works which is not right. It is a pay changing system.
For instance, if they work <= 40 it is their common rate. This is 40 * rateperhour. Fine this works ok. BUT for hours above 40 and less than or equal to 50 is time and a half. This is NOT hours * (1.5). This is ((hours - 40) * 1.5). Notice that I subtract the first 40 hours. You don't get time and a half for all the hours you worked. Only for those hours up and beyond the first 40. Then when you get up over 50 you have to do ((hours - 40) - 10) to give you the number of hours over 50. So if the person worked 70 hours, you would charge 40 hours at normal rate, 10 hours at 1.5 rate and 20 hours that doubles the rate for each hour.
So make sure you make the changes to handle that and double check your equations for the double of pay every hour over 50 because for an artisan it is 100 dollars per hour... the first hour over 50 is 100, the second hour is then double that 200 and the third hour over 50 is then 400 etc etc.
Good luck.