Advertisement
Guest User

Untitled

a guest
Mar 22nd, 2019
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.81 KB | None | 0 0
  1. import java.util.Scanner;
  2.  
  3. import java.lang.Math;
  4.  
  5. import static java.lang.System.*;
  6.  
  7. class SafeBlastDistance{
  8.  
  9.     public static void main(String[] args){
  10.    
  11.                    
  12.         double CCLF, ED, FOS, SBD, SD, D, CL, SL;          
  13.                    
  14.             Scanner scanner = new Scanner(System.in);
  15.                
  16.                 System.out.print("Charge length (m): ");
  17.                         CL = scanner.nextDouble();
  18.                
  19.                 System.out.print("Stemming length (m): ");
  20.                         SL = scanner.nextDouble();
  21.                
  22.                 System.out.print("Borehole diameter (mm): ");
  23.                         D = scanner.nextDouble();
  24.    
  25.         CCLF = 1000 * CL / D;
  26.        
  27.         ED = 1.2;
  28.        
  29.         FOS = 2.0;
  30.        
  31.     SBD = SL + 0.0005 * CCLF * D /  0.00923* CCLF * Math.pow(D, 3) * ED; Math.pow(SBD, 0.333);
  32.    
  33.     SD = FOS * 11 * Math.pow(SBD, -2.167) * Math.pow( D, 0.667);
  34.        
  35.         System.out.println( "Safe Blast Distance = " + SD );
  36.  
  37.     }
  38. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement