Assignemnt #34 and How Old Are You Code /// Name: Yordan Rashkov /// Period: 7 /// Program Name: How Old Are You /// File Name: howoldareyou.java /// Date Finished: 10/20/2015 import java.util.Scanner; public class howoldareyou { public static void main( String[] args ) { Scanner keyboard = new Scanner(System.in); String name; int age; System.out.println( " Hi there! What is your name? "); name = keyboard.next(); System.out.println( " Hey " + name + "! How old are you? " ); age = keyboard.nextInt(); if ( age < 16 ) { System.out.println( " You cannot drive legally! " ); } if ( age < 18 ) { System.out.println( " You cannot vote legally! " ); } if ( age < 25 ) { System.out.println( " You cannot rent a car legally! " ); } if ( age > 25 ) { System.out.println( " You can do anything that is legal! " ); } } }