/**
 * 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  Sandeep Bhambhani [Sanju]
 * @version 1.0
 */
public class LocalTaxes
{
	//Declaring Variables.
	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)
	{
		double tax = 0;

		if(value>0)
			tax = value*PREPARED_FOOD_SURCHARGE_RATE;

		return tax;
	}// End preparedFoodSurcharge
  

/**
  * 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)
	{
		double tax;
		StateTaxes tax2;

		tax2 = new StateTaxes();

		tax = preparedFoodSurcharge(value) + tax2.salesTax(value);

		return tax;
	}// End preparedFoodTax 

}// End LocalTaxes Class
