Prog38: Space Boxing
///Name: Ilana Levy
///Period: 5
///Program Name: Space Boxing
///File Name: spaceBoxing.java
///Date Finished: 9/9/2015
import java.util.Scanner;
public class spaceBoxing
{
public static void main( String[] args )
{
Scanner keyboard = new Scanner( System.in);
int weight, planet;
System.out.print( "Pleas enter your current earth weight: " );
weight = keyboard.nextInt();
System.out.println();
System.out.println( "I have information for the following planets: \n\t 1. Venus\t 2. Mars\t 3. Jupiter\n\t 4. Saturn\t 5. Uranus\t 6. Neptune ");
System.out.print( "Which planet are you visiting? ");
planet = keyboard.nextInt();
if ( planet == 1 )
{
System.out.print( "Your weight would be " + ( weight * .78 ) + " pounds on that planet." );
}
else if (planet == 2)
{
System.out.print( "Your weight would be " + ( weight * .39 ) + " pounds on that planet." );
}
else if (planet == 3)
{
System.out.print( "Your weight would be " + ( weight * 2.65 ) + " pounds on that planet." );
}
else if (planet == 4)
{
System.out.print( "Your weight would be " + ( weight * 1.17 ) + " pounds on that planet." );
}
else if (planet == 5)
{
System.out.print( "Your weight would be " + ( weight * 1.05 ) + " pounds on that planet." );
}
else if (planet == 6)
{
System.out.println( "Your weight would be " + ( weight * 1.23 ) + " pounds on that planet." );
}
}
}