Yaaaaaaaaaaaaaaaaaaaaaaay! :D Glad you got your program working! Good luck in your future endeavors; we'll be here to help whenever you need it! :D
Type: Posts; User: snowguy13
Yaaaaaaaaaaaaaaaaaaaaaaay! :D Glad you got your program working! Good luck in your future endeavors; we'll be here to help whenever you need it! :D
Hmm... ^ that's a better reason than mine. I just don't like printf(). xD
XD
I wonder if he's figured it out...?
Okay! You are so very close!
So, you're multiplying the annual salary by .1 to get 10% of the total. This is right, except you want a 10% raise. Think about this: 100% of their salary, PLUS a...
It's not calculating the 10% raise because you haven't told it to. :P
This is how you calculate annual salary (this is correct):
employee2.getSalary() * 12
This is how you calculate the 10%...
My first suggestion: replace all your printf()'s with print()'s or println()'s. The way you are using printf() makes your code more difficult to understand, not easier. Plus, I think the printf is...
Check out this page, it describes the error you're getting. Are your Employee.class and Employee.java files in the same folder as your EmployeeTest.class and EmployeeTest.java files?