Don't feel sorry. It's called the learning process.
Type: Posts; User: Norm
Don't feel sorry. It's called the learning process.
Now work on the math.
That is a recursive call when a method calls itself repeatedly.
Try calling the version of the method that takes the arguments needed to do the computation:
calculateNetPay(double hours,...
What happens when you compile and execute it?
what prints out?
Where do you call the method and give it the values it needs to compute the net pay?
Does the code compile, execute and do what you want?
Why does the method return 0.0 instead of the computed amount?
Did you get the links I added to my last post?
What variable has the value of net pay that you are trying to return? Where is the method that is supposed to return the net pay?
What do you mean by "return"? In many programming languages,...