Assignemnt #38 and SpaceBoxing
Code
/// Name: Yordan Rashkov
/// Period: 7
/// Program Name: Space Boxing
/// File Name: SpaceBoxing.java
/// Date Finished: 11/4/2015
import java.util.Scanner;
public class SpaceBoxing
{
public static void main( String[] args )
{
Scanner keyboard = new Scanner(System.in);
int weight, numberchosen, int 1 = 0.78, int 2 = 0.39, int 3 = 2.65, int 4 = 1.17, int 5 = 1.05, int 6 = 1.23;
System.out.println( " Please enter your current Earth weight: " );
weight = keyboard.nextInt();
System.out.println( " I have information for the following planets: ");
System.out.print( " 1. Venus " );
System.out.print( " 2. Mars " );
System.out.print( " 3. Jupiter " );
System.out.print( " 4. Saturn " );
System.out.print( " 5. Uranus " );
System.out.print( " 6. Neptune " );
System.out.println( " Which planet are you planning to visit? Enter the number associated with the planet: " );
numberchosen = keyboard.nextDouble();
System.out.println( Your weight would be " " + weight + " * " + numberchosen + " " );
}
}