Evaluate the following expressions: a. Math.abs(1.6) b. Math.abs(2 + 4) c. Math.pow(6, 2) d. Math.pow(5 / 2,

Question:

Evaluate the following expressions:

a. Math.abs(–1.6)

b. Math.abs(2 + –4)

c. Math.pow(6, 2)

d. Math.pow(5 / 2, 6)

e. Math.ceil(9.1)

f. Math.ceil(115.8)

g. Math.max(7, 4)

h. Math.min(8, 3 + 2)

i. Math.min(–2, –5)

j. Math.sqrt(64)

k. Math.sqrt(76 + 45)

l. 100 + Math.log10(100)

m. 13 + Math.abs(–7) – Math.pow(2, 3) + 5

n. Math.sqrt(16) * Math.max(Math.abs(–5), Math.abs(–3))

o. 7 – 2 + Math.log10(1000) + Math.log(Math.pow(Math.E, 5))

p. Math.max(18 – 5, Math.ceil(4.6 * 3))

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question

Building Java Programs A Back To Basics Approach

ISBN: 9780135471944

5th Edition

Authors: Stuart Reges, Marty Stepp

Question Posted: