Prog14: More Variables and Printing
///Name: Ilana Levy
///Period: 5
///Program Name: More Variables and Printing
///File Name: moreVP.java
///Date Finished: 9/6/2015
public class moreVP
{
public static void main( String[] args )
{
String myName, myEyes, myTeeth, myHair;
int myAge, myHeight, myWeight;
myName = "Ilana S Levy";
myAge = 17;
myHeight = 65; //inches
myWeight = 140; //lbs
myEyes = "green";
myTeeth = "white"; //unless if i have scurvy
myHair = "Blonde";
System.out.println( "Let's talk about " + myName + ".");
System.out.println( "He's " + myHeight + " inches tall." ); // Are u kidding me. have u stepped outside of this classroom! It's like land of the giants out there!
System.out.println( "He's " + myWeight + " pounds." );
System.out.println( "Actually, that's not too heavy."); //imagine if I pput 100 lbs; the guy would just float away. No, I said float, not floating point.
System.out.println( "He's got " + myEyes + " eyes and " + myHair + " hair." );//OH NO, IT'S MY EVIL TWIN BROTHER!!!!!!!!
System.out.println( "His teeth are unusually " + myTeeth + " depending on the coffee." );
System.out.println( "If I add " + myAge + ", " + myHeight + ", and " + myWeight + " I get " + (myAge + myHeight + myWeight) + "." );
}
}
///Name: Ilana Levy
///Period: 5
///Program Name: More Variables and Printing
///File Name: moreVP.java
///Date Finished: 9/6/2015
public class moreVP
{
public static void main( String[] args )
{
String Name, Eyes, Teeth, Hair;
int Age, Height, Weight;
double k, cm;
Name = "Ilana S Levy";
Age = 17;
Height = 65; //inches
Weight = 140; //lbs
Eyes = "green";
Teeth = "white"; //unless if i have scurvy
Hair = "Blonde";
cm = Height * 2.54;
k = Weight/ 2.2;
System.out.println( "Let's talk about " + Name + ".");
System.out.println( "He's " + Height + " inches tall." ); // Are u kidding me. have u stepped outside of this classroom! It's like land of the giants out there!
System.out.println( "He's " + Weight + " pounds." );
System.out.println( "Actually, that's not too heavy."); //imagine if I pput 100 lbs; the guy would just float away. No, I said float, not floating point.
System.out.println( "He's got " + Eyes + " eyes and " + Hair + " hair." );//OH NO, IT'S MY EVIL TWIN BROTHER!!!!!!!!
System.out.println( "His teeth are unusually " + Teeth + " depending on the coffee." );
System.out.println( "If I add " + Age + ", " + Height + ", and " + Weight + " I get " + (Age + Height + Weight) + "." );
System.out.println( "Let;s talk about " + Name + "." );
System.out.println( "She's " + Height + " inches (or " + cm + " cm) tall." );
System.out.println( "She's " + Weight + " pounds ( or " + k + " kilograms) heavy" );
System.out.println( "Actually, that's not too heavy");
System.out.println( "She's got " + Eyes + " eyes and " + Hair + " hair." );
System.out.println( "Her teeth are unusually " + Teeth + " depending on the coffee." );
System.out.println( "If I add " + Age + "," + Height + ", and " + Weight + " I get " + (Age + Height + Weight ) + "." );
}
}