Mr. Truncale - Robert E. Lee High School
  • Home
  • Digital Media
    • HTML
  • Video Game Design
  • Comp. Programming I
  • Comp. Programming II
  • AP Computer Science
  • 3D Printing
  • Teacher Resources
  • Contact Me

Java Lesson 6 - Method of the Math Class

Videos


Text


Download as PDF
READ text then COMPLETE assignments below.

Assignments


Exercises on Lesson 6

Download and complete exercises for Lesson 6.  Save and upload file here.
bp6ex.docx
File Size: 19 kb
File Type: docx
Download File

    Max file size: 20MB
Submit

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.

Submit
Robert E. Lee High School
1809 Market
Baytown, TX 77520
281-420-4535
digital media | computer programming I and II | BIM
ap computer science | architectural cad | video game design
national technical honor society | contact me