Question: Write a Java application that uses the Math class to determine the answers for each of the following: 1. The square root of 37 2.

Write a Java application that uses the Math class to determine the answers for each of the following:

1. The square root of 37

2. The sine and cosine of 300

3. The value of the floor, ceiling, and round of 22.8

4. The larger and the smaller of the character D and the integer 71

5. A random number between 0 and 20 (Hint: The random() method returns a value between 0 and 1; you want a number that is 20 times larger.)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!