Assignment 14; More Variables And Printing
Code
// Name: Donovan Rich
// Period: 6
// Program Name: More Variables And Printing
// File Name: MoreVariablesAndPrinting.java
// Date Completed: 9/15/2015
public class MoreVariablesAndPrinting
{
public static void main( String[] args )
{
String Name, Eyes, Teeth, Hair;
int Age, Height, Weight;
double kWeight, cmHeight;
Name = "Quindlyn";
Age = 23;
Height = 38; // inches
Weight = 64; // lbs
kWeight = Weight * 0.453; // kg
cmHeight = Height * 2.54; // cm
Eyes = "Green";
Teeth = "White";
Hair = "Black";
System.out.println( "Let's talk about " + Name + "." );
System.out.println( "She's " + Height + " inches tall, which is " + cmHeight + " centimeters." );
System.out.println( "She's " + Weight + " pounds. In kilograms, that is about " + kWeight + "." );
System.out.println( "Actually, that rather light." );
System.out.println( "She's got " + Eyes + " eyes and " + Hair + " hair." );
System.out.println( "Her teeth are " + Teeth + ". Hopefully." );
System.out.println( "If I add " + Age + ", " + Height + ", and " + Weight
+ " I get " + (Age + Height + Weight) + ". Truly amazing. Exceptional." );
System.out.println( "Also, it most certainlly is NOT lame to substitute the information" );
System.out.println( " of a fictional character in place of my own. Hahahahaha. Ha." );
}
}
Picture of the output
Picture of the character in question