At lines 25-29 you have a loop where the hours are entered. Inside that loop, just after getting the hours, call the
But that won't be enough by itself. Each time it is called, it will generate a resulting value of
I'm not sure what you want to do next. Perhaps print out the wages for each week inside that same loop. Or perhaps add it to a grand total and then after the loop is completed, print out the total for all four weeks. Or maybe both.
Last edited on