Assignemnt #32: Making Decisions

Code

    /// Name: Kelsey Lieberman
    /// Period 5
    /// Program Name: MakingDecisions
    /// File Name: MakingDecisions.java
    /// Date Finished: 10/13/2015
    
import java.util.Scanner;

public class MakingDecisions
{
    public static void main(String[] args)
    {
    
        Scanner keyboard = new Scanner(System.in);
        
        int age;
        
        System.out.print("How old are you?");
        age = keyboard.nextInt();
        
        if (age < 13 )
        {
            System.out.println( "you are too young to make a facebook account");
        }
        if (age > 13)
        {
            System.out.println( "You can make a facebook account!");
        }
        if (age<16)
        {
            System.out.println("You are too young to get a Drivers Liscense");
        }
        if (age>16)
        {
            System.out.println("You are old enough to get a Drivers Liscense!");
        }
        if ( age < 18 )
        {
            System.out.println("You are too young to get a tattoo");
        }
         if ( age > 18 )
        {
            System.out.println("You are old enough to get a tattoo!");
        }
        if (age < 21 ) 
        {
            System.out.println("You are too young to drink alcohol");
        }
         if (age > 21 ) 
        {
            System.out.println("You are old enough to drink alcohol!");
        }
        if (age < 35)
        {
            System.out.println( "You are too young to run for president of the United States. \nHow sad! Only about the President part!!!" );
        }
         if (age > 35)
        {
            System.out.println( "You are old enough to run for president of the United States! \nHow awesome! Only about the President part!!!" );
         }
        if (age >= 65)
        {
            System.out.println("You are old enough to retire! congradualtions!");
        }
              if (age < 65)
        {
            System.out.println("You aren't old enough to retire! Too Bad!");
        }
    }
}

    

Picture of the output

Assignment 32