Question: Problem C (30 pts.) Write a program OperatorPrecedence. java that accepts three floating point numbers x, y and z; and computes the cube root of

Problem C (30 pts.) Write a program OperatorPrecedence. java that accepts three floating point numbers x, y and z; and computes the cube root of x2+y2z. The output should be printed to two decimal places. Input cmd: java Operatorprecedence 558 Output : Cube Root is 3.48 Problem D ( 30 pts.) A physics student gets unexpected results when using the code: F=Gm1m2/rr to compute values according to the formula: F=Gm1m2/r2 D.1 Explain the problem. D.2 Implement the correct formula in the program Force. java. accepts the two masses mI and m2, and the distance between them r as input. The values of input should be provided in exponential notation, and the value of gravitational constant G is 6.674e11. The value of force should be printed up to two decimal places
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
