/home/caleb/NetBeansProjects/ADSV Java/Lab3_1_CalebFontenot/src/main/java/com/calebfontenot/lab3_1_calebfontenot/RunwayLength.java |
package com.calebfontenot.lab3_1_calebfontenot;
import java.util.Scanner;
nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt
nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java
@author
public class RunwayLength {
public static void main(String[] args)
{
double length;
double acceleration;
double velocity;
Scanner input = new Scanner(System.in);
System.out.print("Enter velocity: ");
velocity = input.nextDouble();
System.out.print("Enter acceleration: ");
acceleration = input.nextDouble();
length = Math.pow(velocity, 2) / (2 * acceleration);
System.out.println("The minimum runway length for this airplane is "+length);
}
}