Basic Java Computation Help Ap Computer Science
Hello Guys here is the problem that im stated with and in my code im getting errors because i cant find out how to input the code the correct way. Here is the problem.
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
This is what i have so far as my code.
Anything Helping correcting my brutal slaying of this advanced math method would be helpful.
public class lesson6
//Lesson 6 Project
public static void main(String args )
System.out.println d1=3Math.Pi doublesin(double toRadians(double187)+double abs(double cos(double122))