HW2.24

HW2.24

 

 1 import java.util.Scanner;
 2 
 3 public class Solution
 4 {
 5     public static void main(String[] args)
 6     {
 7         Scanner input = new Scanner(System.in);
 8 
 9         System.out.print("Enter v and a: ");
10         double v = input.nextDouble();
11         double a = input.nextDouble();
12 
13         input.close();
14 
15         double length = v * v / (2 * a);
16         System.out.println("The minimum runway length for this airplane is " + length);
17     }
18 }