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
Dominique decided to build his sons a fort in the backyard. He put a roof on the fort in the shape of a triangular prism.
VARVARA [1.3K]

Answer:

B. 216 ft

Step-by-step explanation:

4 0
3 years ago
Read 2 more answers
Pls help meeeeeeeeee
Studentka2010 [4]

Answer:

3692.64 inches cubed.

Step-by-step explanation:

round this answer to the nearest tenth and that is your answer!

5 0
3 years ago
25 percent of what number is 24
Lady bird [3.3K]

Answer:

96

Step-by-step explanation:

25 x 96= 2400

2400/100

=24

So, 25% of 96 is 24.

Hope this helps

-Amelia  

6 0
4 years ago
Read 2 more answers
If a ribbon is cut into 8 equal parts then how many parts would three people get if it was divided equally?
Arturiano [62]
2 and 2 over 3 (2/3)
8 0
3 years ago
Read 2 more answers
Associative Property of Addition to enter an equivalent expression. 5 + (a + b)
Lynna [10]

Step-by-step explanation:

=a+b+5 this is the answer

7 0
3 years ago
Other questions:
  • What is the volume of the sphere in terms of pi
    5·1 answer
  • How much is 2+3+7-4+8+9-10+4
    11·2 answers
  • Please Help Me! Asap!
    8·1 answer
  • Which equation represents the relation that is shown in the graph? Cost of Buying Comic Books On a coordinate plane, a graph tit
    10·2 answers
  • Can someone please help me out? I'd really appreciate it.
    13·2 answers
  • A carnival ride has cars that each hold 4 adult passengers. The weights of the passengers for this ride are
    7·1 answer
  • What is the exact volume of the cone ​
    10·1 answer
  • Help, Help, Help, Help, Help,
    7·1 answer
  • 3x+12=2x+40 solve for x
    5·2 answers
  • PLEASE HELP!!!!!!!!!!!!!!!!
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!