Write a Payroll class that uses the following arrays as fields:
- employeeId.
- hours.
- payRate.
- wages.
employeeId.
5658845, 4520125, 7895122, 8777541, 8451277, 1302850, 7580489
I should have two classes:
- Asn07Employees
- Assignment07
*I am to use arrays and not vectors
Here is some skeleton code that my instructor gave us:
public class Assignment07
{
public static void main(String []args)
{
int ids[] = {5658845, 4520125, 7895122, 8777541, 8451277, 1302850, 7580489 };
int hours[]={ 12, 15, 7, 16, -1, 20, 15 };
float rate[]={6.5f, 12.5f, 1.5f, 10, 16.5f, 20, 32.5f };
Asn07Employees emps = new Asn07Employees(ids, hours, rate);
emps.calculateWages();
System.out.println(emps);
}
public static void print(String s)
{
System.out.println(s);
}
}
public class Asn07Employees
{
public int _ids[];
{
}
public int _hours[];
{
}
public float _rate[];
{
}
}
Please help, I don't even know where to start. :[
- Aepexx