-Take Test: Lab 3: Math m × \\G Chegg Study | Guided centralLinkl Central Mic 3A
ID: 3878750 • Letter: #
Question
-Take Test: Lab 3: Math m × G Chegg Study | Guided centralLinkl Central Mic 3A-Variables, data type x oardcmich edu webapps assessment take launch sp?course assessment id= 222140 18 course id= 14088/ 1&content; id= 552//18 18step-null C p Secure https://black Home| Central Michi Zy Central Michigan Ui Y Fantasy Reatll 21 C Home | Chogg.com Question Completion Status: QUESTION 2 What will be the oulput of System out printin(Math flon1 25)) IRead th documenteton about floor method end verify your answer n progrem.} 1 points Save Answer QUESTION 3 What will be the output of System.out.prinuni.Math. floor(1·25)). Read the documentation about floor method and verify your answar in program.) 1 points Save Answer QUESTION 4 Watlle the output of System.out println(Math.pow2, 3 Read the documentaton about loor method and verity your answer in program ) 1 points Save Answer 6.0 O 8.0 9.0 5.0 O Type here to search 1 AM 1/25/2018Explanation / Answer
/* floor(x) function returns the largest double that is smaller than or equal to x*/
Q.2
it is Math.floor(1.25) -- So the answer is 1.0
Q.3
it is Math.floor(1.25) -- So the answer is 1.0
Q.4
It is Math.pow(2,3) -- So it is 8.0
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.