import java.util.Scanner;

class Aug30 {
	public static void main(String[] args) {

		// primitive types - variables point to values in RAM
		int age = 39;
		double height = 5.8;
		char middleInitial = 'A';
		boolean hasLegs = true;

		System.out.println("height: " + height);

		// reference types - variables point to addresses of objects in RAM
		// reading data from the keyboard

		Scanner kb = new Scanner(System.in);

		System.out.println("Please enter your name");
		String firstName = kb.nextLine();
		System.out.println("first name: " + firstName);	
	
		System.out.println("Please enter your last name");
		String lastName = kb.next();
		System.out.println("last name: " + lastName);

		System.out.println("Please enter the class average");
        double average = kb.nextDouble();
        System.out.println("average: " + average);

		// changing the value of a variable using arithmetic expressions

		age = 27;

		age = age + 3;	// set age equal to what age currently is plus 3

		age = 50 / 2;  // integer division	

		double result = 50 / 2.0;   // decimal division

		age = 20 * 3;	// multiplication

		age = age - 1;  // subtraction
	
	}
}


