Answer:
- public class Square {
- public static boolean isPerfectSquare(int n){
- int sqrt_n = (int) Math.sqrt(n);
- if(sqrt_n * sqrt_n == n ){
- return true;
- }else{
- return false;
- }
- }
- }
Explanation:
Firstly, use sqrt method from Math package to calculate the square root of input n (Line 3). Cast the result to integer and assign it to sqrt_n variable.
Next, square the sqrt_n and check if it is equal to input n (Line 4). If so, return true, if not, return false (Line 4-8).
The answer & explanation for this question is given in the attachment below.
I would make the slide more effective by using music. Music helps control the mood. It allows a person or people to feel a certain way. It also helps people to connect with you. Music will be upbeat and have a fast tempo and the surrounding people will enjoy.
The answer is higher interest rate
The best and most correct answer among the choices provided by the question is the first choice "miniaturization"<span>
A jet airliner (or jetliner<span>, or jet) is an airliner powered by jet engines (passenger jet aircraft). Airliners usually have two or four jet engines; three-engined designs were popular in the 1970s but are less common today.
</span>
I hope my answer has come to your help. God bless and have a nice day ahead!</span>