Assignemnt #14 More Variables And Printing
Code
///Name: Morgan Kaplan
///Period: 5
///Project Name: More Variables And Printing
///File Name: MoreVariableAndPrinting.java
/// Please don't mark me down for the table not lining up because I asked you and you said it was ok.
public class MoreVariablesAndPrinting
{
public static void main( String[] args )
{
String Name, Eyes, Teeth, Hair;
int Age;
double Height, Weight;
Name = "Momo Swizzle";
Age = 16; // not a lie
Height = 74 *2.54; // cm
Weight = 235 *0.453592; // kg
Eyes = "Hazel";
Teeth = "White";
Hair = "Brown";
System.out.println( "Let's talk about " + Name + "." );
System.out.println( "He's " + Height + " inches tall." );
System.out.println( "He's " + Weight + " pounds." );
System.out.println( "Actually, that's not too heavy." );
System.out.println( "He's got " + Eyes + " eyes and " + Hair + " hair." );
System.out.println( "His teeth are usually " + Teeth + " depending on the coffee." );
// This line is tricky; try to get it exactly right.
System.out.println( "If I add " + Age + ", " + Height + ", and " + Weight
+ " I get " + (Age + Height + Weight) + "." );
Picture of Output