Search:

Type: Posts; User: ACrappyDJ

Search: Search took 0.14 seconds.

  1. Re: Trying to get values from arrays rather than hashcode

    I went back and assigned the index to the returning variable, and it worked like a charm.



    public double getWage(int index)
    {
    return wage[index];
    }

    Thanks again for your help. I didn't...
  2. Re: Trying to get values from arrays rather than hashcode

    Ok, so it displays the employeeID value and wage value for each subscript. Now, it just displays zero for each value. I don't know what it is I'm doing wrong. Is it because I don't have a...
  3. Re: Trying to get values from arrays rather than hashcode

    So, I changed the definitions to return a single value, but I'm confused about passing the index to the array to the method. This is what I have so far:



    //getEmployeeID method
    public int...
  4. Re: Trying to get values from arrays rather than hashcode

    I think that might be where the problem lies. I want it to return each individual employeeID and wage per subscript. I want it to list employee[0] with wage[0], employee[1] with wage[1], and so on....
  5. Re: Trying to get values from arrays rather than hashcode

    Thanks for replying. Sorry about the vagueness. Ultimately, I want the program to display the employeeID # and prompt the user to enter the amount of hours worked, and then pay rate.



    for...
  6. Trying to get values from arrays rather than hashcode

    Hello,

    I've been stuck on this homework assignment for some time now, and tried looking for possible solutions. The assignment goes like this...Write a Payroll class that uses the following...
Results 1 to 6 of 6