Java编程 已知均加速为十米每秒 加速度为2,求20秒后速度 20秒内走过的路程及平均速度.

问题描述:

Java编程 已知均加速为十米每秒 加速度为2,求20秒后速度 20秒内走过的路程及平均速度.
考试中 大侠 速度 万分感谢

public class Test {public static void main(String[] args) {double v0 = 10;//初始速度double a = 2;//加速度double t = 20;//时间//v = v0 + atdouble v = v0 + a * t;//s = v0*5 + 1/2*a*t*tdouble s = v0 * t ...