Question: Write a Java application that uses the Math class to determine the answers for each of the following: a. The square root of 37 b.
Write a Java application that uses the Math class to determine the answers for each of the following:
a. The square root of 37
b. The sine and cosine of 300
c. The value of the floor, ceiling, and round of 22.8
d. The larger and the smaller of the character ‘D’ and the integer 71
e. A random number between 0 and 20 (The random() method returns a value between 0 and 1; you want a number that is 20 times larger.) Save the application as MathTest.java.
Step by Step Solution
3.25 Rating (157 Votes )
There are 3 Steps involved in it
MathTestjava public class MathTest public static void mainString args Systemoutprintln The squar... View full answer
Get step-by-step solutions from verified subject matter experts
