Hello Everyone,

I am new to Java programming and I am having a small problem with a java program concerning order of operations. The problem is as follow

Write a code that declares variables for s0 with a value of 12.0, v0 with a value of 3.5, a with a value of 9.8, and t with a value of 10, for the for this equation.

s=so + vo t + 1/2 at^2

and then write the code to compute s on the basis of these values. At the end of your code, print the value of your variable s to the console.

So Here is my code so far. the problem I seem to be having is at the end of the problem where I have to multiply a and t and then square it.

Also print statement does not seem to work either. Any advice on how to fix this I would appreciate it.

//declare variables double so; double vo; double a; double t; double s; //compute*s so = 12.0; vo = 3.5; a = 9.8; t = 10; s=(so) +(vot) +.05 a*t*t; //print results System.out.println("s");