import java.util.*;
public class JackTheRipper{
 public static void main(String args[]){
  
  String a,b,c,d,e;
     
  Scanner console = new Scanner(System.in);
     System.out.println("---------------------------------------------------------------------------------------------------------");
  System.out.println("|Enter name:                                                                                             |");
   a= console.nextLine();
        System.out.println("|Enter gender:                                                                                           |");
   b= console.nextLine();
  System.out.println("|Enter age:                                                                                              |");
   c= console.nextLine();
     System.out.println("|Enter Crime:                                                                                            |");
         d= console.nextLine();
        System.out.println("|Enter Present jail:                                                                                     |");
            e= console.nextLine();
        System.out.println("----------------------------------------------------------------------------------------------------------");    
  System.out.println("|Name: "+a+"                                                                                   | \n|Gender: "+b+"                                                                                            | \n|Age: "+c+"                                                                                                 | \n|PresentJail: "+d+"                                                                       |");
  System.out.println("|" + a + " is a " + b + " at the age of " + c + " which is imprison in " + e + " for " + d + "." + "|");
  System.out.println("----------------------------------------------------------------------------------------------------------");
  
  
  if (d.equals("raping and murdering"))
        System.out.println("Sentence to death");
        else if (d.equals("drug vending"))
        System.out.println("Hang to death");
        else 
        System.out.println("lala");
        
  System.exit(0);
 }
}
Tuesday, May 5, 2009
Subscribe to:
Post Comments (Atom)

No comments:
Post a Comment