5.Write a java program to input values for initial velocity(u), time(I) and acceleration(a) and
calculate distance(s).
S=ut +1/2
at^2
Answers
Answered by
0
Answer:
Explaination: Programming....
Answered by
1
Answer:
import java.util.*;
public class distance
{
double distance(double u, double t, double a)
{
double d;
d = (u*t) + ((1/2)*acc*(t*t));
System.out.println("The results are: ");
System.out.println("velocity (u)= "+u);
System.out.println("Time (t)= "+t);
System.out.println("Acceleration (a)= "+a);
System.out.println("Final result (d)= "+d);
}
}
Explanation:
HOPE YOU GET IT!
Similar questions