/**
 * A utility class that can be used to calculate local taxes.
 *
 * In this case, the only local taxes are on prepared foods.
 *
 *
 * This work complies with the JMU Honor Code.
 *
 * @author  DAT NGUYEN
 * @version 1.0
 */
public class LocalTaxes
{
	//class variable
	private static double PREPARED_FOOD_SURCHARGE_RATE      = 0.07;

	/**
	 * Calculate the surcharge on prepared food
	 *
	 * @param value   The value of the prepared food
	 * @return        The surcharge (in dollars)
	 */
	public static double preparedFoodSurcharge(double value)
	{
		//local variable
		double   surcharge;
       
		//initialize variable
		surcharge = 0.0;
		
		//calculation for surchage
		surcharge = value * PREPARED_FOOD_SURCHARGE_RATE;	
		
		//returns the surcharge value
		return surcharge;       
    } //end preparedFoodSurcharge method
    

	/**
	 * Calculate the tax on prepared food
	 *
	 * @param value   The value of the prepared food
	 * @return        The tax (in dollars)
	 */
	public static double preparedFoodTax(double value)
	{
		//local variable
		double   tax;
		
		//initialize variable
		tax = 0.0;
       
		//calculation for tax on prepared food
		tax = StateTaxes.salesTax(value) + preparedFoodSurcharge(value);
		
		//returns the tax value
		return tax;       
	} //end preparedFoodTax method    
} //end class
