Computer Science, asked by amit5486, 5 months ago

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 shahtasnim76gmailcom
0

Answer:

Explaination: Programming....

Answered by Anushkaphokane
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