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...
Type: Posts; User: ACrappyDJ
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...
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...
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...
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....
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...
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...