write a java expression for UT plus half a t square
Answers
Answered by
5
Explanation:
public class DistanceTravelled {
static double testcase11 = 12.5;
static double testcase12 = 4.4;
static double testcase13 = 10;
public static void main(String args[]){
DistanceTravelled testInstance= new DistanceTravelled();
double result = testInstance.distance(testcase11,testcase12,testcase13);
System.out.println(result);
}
//write your code here
public double distance(double u, double a, double t){
double d = d = u*t + 1/2*a*t^2 ;
return d;
}
Answered by
1
Answer:
u*t+1/2*a*t*t
Explanation:
Mark me brainliest
Similar questions
Chemistry,
5 months ago
Geography,
5 months ago
Social Sciences,
5 months ago
Math,
10 months ago
English,
10 months ago