R4.1 Complete the program Review1.java that prints the value of the following mathematical expressions in Java. Format the output to
print 5 decimal places. The output should look like
s = xxxx.xxxxx
h = xxxx.xxxxx
where I do not mean to imply there are four digits to the left of the
decimal point (whatever it turns out to be is what it is), but there
are 5 digits to the right of the decimal point. The expressions are:
s = s0 + v0 times t + one half of g times t squared
h = 4 times pi squared times the ratio of z cubed over
(p squared times the sum of m1 and m2)
All of the variables are of type double, and they have the
following values:
1, 2, 3, 9.8, 4, 5, 6, 7, for
s0, v0, t, g, z, p, m1, m2,
respectively.
If this English reading of the expression is confusing, see the
mathematical expression in the book, Review exercise R4.1.
*/
import javax.swing.* ;
import java.util.* ;
import java.lang.*;
public class Review1
{
public static void main(String[] args)