Guest User

Untitled

a guest
Oct 23rd, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. public class Balistic {
  2. public static void main (String[] args) {
  3.  
  4. double x0 = Double.parseDouble(args[0]);
  5. double v0 = Double.parseDouble(args[1]);
  6. double t = Double.parseDouble(args[2]);
  7.  
  8. double g = 9.78033;
  9.  
  10. double x = (x0 + v0 * t - (g*(t*t))/2);
  11.  
  12. System.out.println(x);
  13. }
  14. }
Add Comment
Please, Sign In to add comment