
/**
 * Examples for class on integer, boolean operations and ifs 
 * 
 * @author Kathryn
 * @version January 29, 2007
 */
public class SimpleOpsIF
{
    
    public static void main(String[] args)
    {
        // Computing heart rates for exercising
        final int MAX_HEART_RATE = 220;        // cannot change
        int age = 18;
        int aerobicZone;     // target arerobic heart rate
        float fatBurningZone;  // target fat burning heart rate

        aerobicZone = (int) ((MAX_HEART_RATE - age) * .75);
        fatBurningZone = (float) ((MAX_HEART_RATE - age) * .65);
        
        System.out.println("\fFor your age: " + age);
        System.out.println("Your aerobic zone is: " + aerobicZone);
        System.out.println("Your fat Burning zone is: " + fatBurningZone);
        
        // Using conditionals in a loop on our Killer's song
      
        
        
        System.out.println("Yah yah, you got to help me out."); 
        
        int n = 12;
        for (int i = 0; i < n; i++) { 
            if (i == 0) {
                System.out.println("You are going to bring yourself down.");
            } else if (i == (n-1)) {
                System.out.println("Yah yah, you got to help me out."); 
            }
            else { // i >= 1 && i < (n-1)
                System.out.println("I've got soul, but I'm not a soldier.");
            }

        }
        
    }
}







