Answer:
HELLO, be nice spread love... DO NOT HATE ON OTHERS
░░░░░▐▀█▀▌░░░░▀█▄░░░
░░░░░▐█▄█▌░░░░░░▀█▄░░
░░░░░░▀▄▀░░░▄▄▄▄▄▀▀░░
░░░░▄▄▄██▀▀▀▀░░░░░░
░░░█▀▄▄▄█░▀▀░░
░░░▌░▄▄▄▐▌▀▀▀░░ This is Bob
▄░▐░░░▄▄░█░▀▀ ░░
▀█▌░░░▄░▀█▀░▀ ░░ Copy and paste him so he can take over brainly.
░░░░░░░▀███▀█░▄░░
░░░░░░▐▌▀▄▀▄▀▐▄░░
░░░░░░▐▀░░░░░░▐▌░░
░░░░░░█░░░░░░░░█░
COPY AND PASTE LETS DEFEAT BRAINLY
Explanation:
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).
Since there were 72 fewer students tickets sold than adults tickets. the number of adult tickets that were sold is 278.
<h3>What is this algebra about?</h3>
Note that:
A total of 378 tickets were sold for the school play.
So:
A + S = 378
S = 2A
A + (2A) = 378
3A = 378
A = 126
If A is 126, then S is double of that, or 252.
126 + 252 = 278
Therefore, Since there were 72 fewer students tickets sold than adults tickets. the number of adult tickets that were sold is 278.
Learn more about tickets from
brainly.com/question/13520667
#SPJ1