All pastes #716480 Raw Edit

Untitled

public text v1 · immutable
#716480 ·published 2007-09-26 21:09 UTC
rendered paste body

public class Paycheck
{
	public Paycheck()
	{
		int werkweek = 40;
		int salaris = 10;
		
	}
	
	public int uren()
	{
		String totaal;
		if 	(uren > werkweek)
		{
			overuren = uren - werkweek;
			totaal = uren*salaris + overuren*(salaris * (150/100));
		}
	
		return totaal;
	}
	
	private int uren;
	private int overuren;
	private int totaal;
	private int werkweek;
	private int salaris;
}