/*
 *2013-09-05
 *HW: Unit 2 Practice Assignment: Ch4 Debug Exercise 4
 *Bradley Forney
 *CIS 127
 *Professor: Craig Sharp
 * 
 * This class discounts prices by 10%
 */

public class FixDebugFour4
{
   public static void main(String[] args)
   {
      final double DISCOUNT_RATE = 0.90;
      int price = 100;
      double price2 = 100.00;
      tenPercentOff(price, DISCOUNT_RATE);
      tenPercentOff(price2, DISCOUNT_RATE);
   }
   public static void tenPercentOff(int p,final double DISCOUNT_RATE)
   {
      double newPrice = p * DISCOUNT_RATE;
      System.out.println("\nTen percent off "  + p);
      System.out.println("  New price is " + newPrice);
   }
   public static void tenPercentOff(double p,final double DISCOUNT_RATE)
   {
      double newPrice = p * DISCOUNT_RATE;
      System.out.println("\nTen percent off " + p);
      System.out.println("  New price is " + newPrice);
   }
}
