DESCRIPTION OF INTERACTIVE

String fname;

Line 6: A variable of type String is declared; it is called fname, as it will hold the first name of the person.

String lname;

Line 7: A variable of type String is declared; it is called lname, as it will hold the last name of the person.

int age;

Line 8: A variable of type int is declared; it is called age, as it will hold the age of the person.

double height;

Line 9: A variable of type double is declared; it is called height, as it will hold the height of the person.

boolean loveCS;

Line 10: A variable of type boolean is declared; it is called lovesCS, as it will hold either true or false, depending on whether or not the person loves computer science.

fname = "Stephanie";
lname = "Yang";
age = 17;
height = 158.5;
loveCS = true;

Line 12: The variable fname is initialized to Stephanie.
Line 13: The variable lname is initialized to Yang.
Line 14: The variable age is initialized to 17.
Line 15: The variable height is initialized to 158.5.
Line 16: The variable loveCS is initialized to true.


System.out.println ("First Name: " + fname);
System.out.println ("Last Name: " + lname);
System.out.println ("Age: " + age);
System.out.println ("Height: " + height);
System.out.println ("Loves Computer Science?" + lovesCS);

Line 18: The value of the fname variable is output to the console.
Line 19: The value of the lname variable is output to the console.
Line 20: The value of the age variable is output to the console.
Line 21: The value of the height variable is output to the console.
Line 22: The value of the loveCS variable is output to the console.