Search:

Type: Posts; User: snowguy13

Search: Search took 0.08 seconds.

  1. Re: Employee Class Exercise... Code will not run!!!!

    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
  2. Re: Employee Class Exercise... Code will not run!!!!

    Hmm... ^ that's a better reason than mine. I just don't like printf(). xD
  3. Re: Employee Class Exercise... Code will not run!!!!

    XD

    I wonder if he's figured it out...?
  4. Re: Employee Class Exercise... Code will not run!!!!

    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...
  5. Re: Employee Class Exercise... Code will not run!!!!

    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%...
  6. Re: Employee Class Exercise... Code will not run!!!!

    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...
  7. Re: Employee Class Exercise... Code will not run!!!!

    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?
Results 1 to 7 of 7