/**
 * 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  Your Name
 * @version 1.0
 */
    public class LocalTaxes
   {
      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   surcharge;
       
         surcharge = 0.0;//default value
         
         if(value>0)//in case a negative value was entered
            surcharge=PREPARED_FOOD_SURCHARGE_RATE*value;
      
         return surcharge;       
      }//end of 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)
      {
         double   tax;
      
         tax = 0.0;//zero by default
       
       //combines the sales tax with the prepared food
      //surcharge to make the prepared food tax.
         tax=(StateTaxes.salesTax(value)
            +preparedFoodSurcharge(value));
      
      
         return tax;       
      }//end of method
    
   }//end of the class
