Java Lesson 6 - Method of the Math Class
READ text then COMPLETE assignments below.
Exercises on Lesson 6
Download and complete exercises for Lesson 6. Save and upload file here.
Project - Compute This
Create a new project called ComputeThis having a class called Tester. The main method of Tester should calculate the value of the following formulas and present the answers as shown.
d1 = 3πsin(187°) + |cos(122°)|
(Remember that the arguments of sin and cos must be in radians.)
d2 = (14.72)3.801 + ln 72
(ln means log base e)
The output of your code should appear as follows:
d1 = -0.618672237585067
d2 = 27496.988867001543
Verify these answers with a calculator.