// Andrew Hoffmann


public class ASH2e
{
	// Declare data
	private int id;
	private double gross;
	private boolean married;
	private int dep;
	private int vac;
	private double used;

	// 4 arg constructor
	public ASH2e(double g, boolean m, int d, int i)
	{
		gross = g;
		married = m;
		dep = d;
		id = i;
	}

	// Calc vac days remaining
	public int vacleft()
	{
		int vacr;
		vacr = 12 - vac;
		return vacr;
	}

	// Calc exemptions and make no higher then $500
	public double exemptions()
	{
		double exemptz = 0;
		double depex;
		boolean tempmar;
		tempmar = married;

		depex = 100 * dep;
		if (tempmar = true)
		{
			exemptz = 200 + depex;
		}
		else if (tempmar = false)
		{
			exemptz = depex;
		}

		if (exemptz > 500)
			exemptz = 500;
		return exemptz;
	}


	// Set vacation used
	public void setVac(int v)
	{
		vac = v;
	}

	// Get id
	public int getId()
	{
		return id;
	}
}
