Question: #1#8 : Evaluate the following expressions: 1. Math.abs (1.23) 2. Math.pow (3,2) 3. Math.pow (10,2) 4. Math.sqrt (121.0) - Math.sqrt (256.0) 5. Math.round (Math.PI) +
#1#8 : Evaluate the following expressions: 1. Math.abs (1.23) 2. Math.pow (3,2) 3. Math.pow (10,2) 4. Math.sqrt (121.0) - Math.sqrt (256.0) 5. Math.round (Math.PI) + Math.round (Math.E) 6. Math.ceil(6.022) + Math.floor (15.9994) 7. Math.abs (Math.min (3,5)) 8. Math. log10(100) - \#9- \#10 Math.max and Math.min can be used to bound number. Consider an int variable named age. 9. What statement would replace negative ages with o? 10. What statement would cap the maximum age to 40
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
