Hye..Anybody can help me? I need some help here..
Below is program 1 (main program)
import java.util.*;
public class Staff
{
public double weeklyIncome, monthlyIncome;
public String name, staffId;
[B]/*how to code the input method to read the staff name,
staff id and weekly salary from a keyboard?*/[/B]
}
//Program 1
public class Salary
{
public static void main(String[]arg)
{
Staff[]staff = new Staff[12];
Staff data=new Staff();
data.input(staff);
data.calculateMonthlyIncome(staff);
double max=data.maximum(staff);
}
}
Some tips?
Can anybody show me the some examples? :)
thank you