1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
agasfer [191]
3 years ago
5

The area of a square is stored in a double variable named area. write an expression whose value is length of the diagonal of the

square java
Mathematics
1 answer:
lbvjy [14]3 years ago
3 0

First of all, a bit of theory: since the area of a square is given by

A = s^2

where s is the length of the square. So, if we invert this function we have

s = \sqrt{A}.

Moreover, the diagonal of a square cuts the square in two isosceles right triangles, whose legs are the sides, so the diagonal is the hypothenuse and it can be found by

d = \sqrt{s^2+s^2} = \sqrt{2s^2} = s\sqrt{2}

So, the diagonal is the side length, multiplied by the square root of 2.

With that being said, your function could be something like this:

double diagonalFromArea(double area) {

double side = Math.sqrt(area);

double diagonal = side * Math.sqrt(2);

return diagonal;

}

You might be interested in
What is 73 divided by 42,895
zimovet [89]

Answer:

587.602739726

Step-by-step explanation:

4 0
3 years ago
Read 2 more answers
Mrs.jones has half of a pie left from yesterday’s dinner , today her four children will share this left over pie equally . What
Stolb23 [73]
Each kid will get 1 fourth of the pie
7 0
3 years ago
Which best describes the relationship between the successive terms in the sequence shown?
ahrayia [7]

Answer:

  • (C)The common ratio is –2.0

Step-by-step explanation:

<u>Given sequence: </u>

  • 2.4, –4.8, 9.6, –19.2

This is not AP as the difference in terms is not common

<u>This is GP with the common ratio of -2 as:</u>

  • -19.2/9.6 = 9.6/ -4/8 = -4.8/2.4 = -2

Correct choice is (C)

4 0
3 years ago
Let Us Cell U charges $0.15/minute for long distance calls. Cell for Less charges $10.50/hour plus an additional $0.10/minute fo
docker41 [41]
Let Us Call <span>better</span>

translate 5 hours and 15 min into all min to find the total for us cell u. 5*60=300, so 315 minutes. So then multiply .15 by 315 and you get 47.25$. 

<span>Now do Call for us. so first multiply 5 by 10.50. you get 52.50$.</span>
4 0
3 years ago
Oh a number line what is the distance between -54 and 73
Ghella [55]

The correct answer is 127.

:)

5 0
4 years ago
Read 2 more answers
Other questions:
  • Complete the statement.
    10·2 answers
  • hat are the solutions to the equation |x| = 2? Choose all answers that are correct. A. B. C. D.
    9·2 answers
  • Wayne bought an engagement ring for Tracy.
    13·2 answers
  • -3+m/3=12 how do I solve this
    9·2 answers
  • What is the surface area of the cube with the given edge length, s? Drag and drop the surface area into the box to match edge le
    5·2 answers
  • I WILL GIVE AWAY ALL OF MY 50 POINTS FOR AN ANSWER!!!!! What is the surface area of the box if it is scaled up by a factor of 10
    10·1 answer
  • Layla calculates the mean of the ages of 10 students on her bus, and she discovers the average(mean) age is 12.8. What will happ
    5·1 answer
  • Find the Zeros: <br> 0=2(x+2)^2-5
    6·1 answer
  • Find the slope of the line that contains (2, -10) and (-4,2)
    5·1 answer
  • The path of a projectile launched from a 16-ft-tall tower is modeled by the equation y = −16t2 + 64t +16. What is the maximum he
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!