Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* CL = Charge Length
- SL = Stemming Length
- D = Borehole Diameter
- SDOB = Safe Blast Distance
- ED = Explosive Density
- SD = Safe Distance
- FOS = Factor of Safety
- */
- import java.util.Scanner;
- class AssignmentOne{
- public static void main(String[] args)
- {
- double CL, SL, D, ED, FOS, CCLF, SDOB, SD;
- ED = 1.2;
- FOS = 2.0;
- Scanner scanner = new Scanner(System.in);
- System.out.print("Charge length (m): ");
- CL = scanner.nextDouble();
- System.out.print("Stemming length (m): ");
- SL = scanner.nextDouble();
- System.out.print("Borehole diameter (mm): ");
- D = scanner.nextDouble();
- CCLF = 1000 * CL / D;
- if( CCLF >10) {
- CCLF = 10;}
- else { CCLF = (1000 * CL / D);
- }
- SDOB = (SL + 0.0005 * CCLF * D) / (0.00923 * (CCLF * Math.pow(D, 3) * ED)); Math.pow(SDOB, 0.333);
- SD = (FOS * 11 * Math.pow(SDOB, -2.167)) * Math.pow(D, 0.667);
- System.out.println("The safe distance is: " + SD);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement