dbinoj

Wired JAVA Program

Jul 15th, 2012
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.49 KB | None | 0 0
  1. import java.math.*;
  2. class sample {
  3.   public static void main(String s[]) {
  4.    float w1=2250,w2=2750,sigma=6,c=5,torqe=420,g=84,t1;
  5.     int t;
  6.    String t2;
  7.    System.out.println("\n\t\t Maths Calculation");
  8.    System.out.println("\n\t\t Twisting Moment");
  9.    t1=(w2*5)/2;
  10.    t=(int)t1;
  11.    t2=t+"d";
  12.    System.out.println(t2);
  13.    
  14.    float inter=(float)(3.14/16)*torqe;      
  15.    System.out.println(inter);
  16.    float d2=t/inter;
  17.    System.out.println(Math.sqrt(d2));  
  18.  
  19.  
  20.  
  21.         }
  22.     }
Advertisement
Add Comment
Please, Sign In to add comment