get paid to paste

review

1java was release in 1995

2java first name was oak tree

3develop by james gosling

4.2nd name of java was green project

5. java programing styling style was adopted from - c++ c programing

6. selection

7. what java programing being describe. - d sam

8. whic of the ff names are invalid - $ sign

9. identify the ff output 1	
			  2
		          3
                          4

10. output 15

11. 4 5 6 7 8 9 10 11 
12. 3 6 8 9 15 18 21 24 27
13. output 0


part 2 :


/*
 * allen aquino
 * cp13b
 */
package samplereviewer;
import java.util.*;

public class Samplereviewer {
static Scanner console = new Scanner (System.in);


    public static void main(String[] args) {
        double kw,hp,w,cal,kj,kcal;
        char choice;

       System.out.println("\n[A] Power Converter" +
                            "\n" + "[B] Energy Converter\n" +
                            "\n" + "[C] Velocity Converter\n"); 
                  
        System.out.println("select your choice: ");
        choice=console.next().charAt(0);
      if(choice=='a'||choice=='A')
      {
           System.out.println("\nyou've selected watts: ");
           System.out.println("\nEnter watts: ");
           w=console.nextDouble();
           hp=0.0013410209;
           hp=w*hp;

           kw=0.001;
           kw=w*kw;
      
           System.out.println("kilowatts : " + kw );       
           System.out.println("horsepower is : " + hp );
      }
                  
           else if (choice=='b'||choice=='B')
           
           {
            
          System.out.println("\nyou've select Calories: ");
           System.out.println("\nEnter Calories: ");
           cal=console.nextDouble();
           
           kj=0.004184;
           kj=cal*kj;
           
           kcal=0.001;
           kcal=cal*kcal;
      
           System.out.println("kilojoules is: " + kj );       
           System.out.println("kilocalories is : " + kcal );
           }
           
        else if (choice=='c'||choice=='C') {
            
          System.out.println("\nyou've select Calories: ");
           System.out.println("\nEnter Calories: ");
           cal=console.nextDouble();

         
           kj=cal*0.0049;
           kcal=cal*0.001;
      
           System.out.println("kilojoules is: " + kcal );       
           System.out.println("kilocalories is : " + kcal );

           
           
          
         }
       
       
       
   
  
}
}

Pasted: Jul 15, 2013, 3:33:25 pm
Views: 2