I am writing a simple program for my C++ homework. I need to create a console app that calculates Gross Pay and Net Pay based on Hours Worked and Rate of Pay, with a tax rate of 28%.
To test it, I found an equation that I know the answers to: 40 hours @ $16/h with 7.650% tax.
It's supposed to come out at $640 Gross, and $48.96 in tax, and a Net total of $591.04. However, it keeps coming up with $45.90. I can't go to the next step if this is incorrect.
Does anyone know what I'm doing wrong?