logo Practice-It logo

BJP3 Self-Check 3.13: mathExpressions

Language/Type: Java expressions Math
Author: Leslie Ferguson (on 2013/04/01)

Evaluate the following expressions. Make sure to give a value of the appropriate type (such as including a decimal point in a double).

Math.abs(-1.6)
Math.abs(2 + -4)
Math.pow(6, 2)
Math.pow(5 / 2, 6)
Math.ceil(9.1)
Math.ceil(115.8)
Math.max(7, 4)
Math.min(8, 3 + 2)
Math.min(-2, -5)
Math.sqrt(64)
Math.sqrt(76 + 45)
100 + Math.log10(100)
13 + Math.abs(-7) - Math.pow(2, 3) + 5
Math.sqrt(16) * Math.max(Math.abs(-5), Math.abs(-3))
7 - 2 + Math.log10(1000) + Math.log(Math.pow(Math.E, 5))
Math.max(18 - 5 + Math.random(), Math.ceil(4.6 * 3))

You must log in before you can solve this problem.


Log In

If you do not understand how to solve a problem or why your solution doesn't work, please contact your TA or instructor.
If something seems wrong with the site (errors, slow performance, incorrect problems/tests, etc.), please

Is there a problem? Contact a site administrator.