14 solutions available
Question 1How do user-defined methods differ from library methods?
Question 2Distinguish between Math.ceil() and Math.floor() methods.
Question 3What is wrong with the following statements? Explain.i. result = (5/10) * Math.sqrt( a );
Question 4Explain the following Math functions in Java:i. Math.abs()
Question 5Write Java expressions for the following:i. The square root of a + 5b3
Question 6Write the following as Java expressions:i. x2+5y33\sqrt[3]{x^2 + 5y^3}3x2+5y3
Question 7Write valid statements for the following in Java:i. Print the rounded off value of 14.49
Question 8Write a program in Java to find the maximum of three numbers using Math.max() method.
Question 9Write a program to print:i. x to the power yii. the square root of yThe values of x and y are 81 and 3, respectively.
Question 10Write a program to compute and display the value of expression:1x2+1y3+1z4\dfrac{1}{x^2} + \dfrac{1}{y^3} +...
Question 11Write a program to generate random integers in the following ranges:i. 10 to 20 (both inclusive)ii. 25 to 50 (both inclusive)
Question 12Write a program that accepts a number x and then prints:x0, x1, x2, x3, x4, x5
Question 13Write the equivalent Java statements for the following, by using the mathematical functions:i. Print the positive value of -999.
Question 14Write a program in Java to compute the final velocity of a vehicle using the following formula:v2=u2+2asv^2 = u^2 + 2asv2=u2+2aswhere, u =...