II. Short Answer Questions:
1. Write down the syntax for the following functions in Java programming:
(a) To find the smaller between two numbers. Math.min cab)
(b) To find the absolute value of a number. Math.abs.ca)
(c) To find the exponent of a number. Math .expca)
(d) To find the square root of a number. Mathie squet cas
2. Assign the value of pie () to a variable with the suitable data type. double pi =3014159
3. Give the output of the following expressions:
(a) If x = -9.99, calculate Math.abs(x); 9.99
(b) If x = 9.0, calculate Math.sqrt(x); 3.0
4. Perform the following functions with a suitable data type to:
(a) assign 35.0012 to a variable. douloide a = 35.0012;
(b) assign the value of 2 (1.414) to a variable. doubd é a = Math.sqrt (2);
(c) assign 435.0 to a variable. double a 3435.0
(d) find the square root of 99 with a variable. in? A
(e) find the natural log of 23 with a suitable variable.
e) int a = 23
int a = 99;
Program Coding 71
double res= Math.loge
double res= Math.sa8t (a):
greator
Answers
Answered by
0
Answer:
The Egyptian pyramids are ancient pyramid-shaped masonry structures located in Egypt. As of November 2008, sources cite either 118 or 138 as the number of identified Egyptian pyramids. Most were built as tombs for the country's pharaohs and their consorts during the Old and Middle Kingdom periods.
____________________________
Answered by
0
Answer:
bobo kakase konte wag ka dito mag hanap ng sagot pinag aaral ka ng nanay at tatay mo tas nangongopya ka lang
Similar questions