Something
public text v1 · immutable
public class Paycheck
{
public Paycheck()
{
int werkweek = 40;
int salaris = 10;
}
public int totaaluren(int uren)
{
int totaal;
if (uren > werkweek)
{
overuren = uren - werkweek;
totaal = uren*salaris + overuren*(salaris * (150/100));
}
return totaal;
}
private int overuren;
private int totaal;
private int werkweek;
private int salaris;
}