answer.
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]
1 year 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]1 year 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
The three friends drove to a park that had batting cages and pitching machines that tossed the balls to the batter automatically
aleksklad [387]

Answer:

first B,second A, third C on edg

Step-by-step explanation:

4 0
1 year ago
Read 2 more answers
A science test, which is worth 100 points, consists of 24 questions. Each question is worth either 3 points or 5 points. If x is
anzhelika [568]
You need to solve for one variable in equation 1 and substitute it in equation 2 to solve.

Equation 1: x+y=24
x= number of 3 pt questions
y= number of 5 pt questions
24= Total number of questions

Equation 2: 3x+5y=100
100= Total point value possible on test
3x= point value of 3 pt questions
5y= point value of 5 pt questions

x+y=24
Subtract y from both sides
x=24-y

Substitute in equation 2:
3x+5y=100
3(24-y) +5y=100
72-3y+5y=100
72+2y=100
Subtract 72 from both sides
2y=28
Divide both sides by 2
y=14

Substitute y=14 back in to solve for x:
3x+5y=100
3x+5(14)=100
3x+70=100
Subtract 70 from both sides
3x=30
Divide both sides by 3
x=10

So there are 10 three point questions
There are 14 five point questions.

Hope this helped! :)
6 0
1 year ago
Read 2 more answers
Difference of 86.42 - 2.1.
densk [106]

Answer:

The first one

Step-by-step explanation:

The decimals line up when you subtract them

3 0
1 year ago
Read 2 more answers
7 times z reduced by a third of the product
ASHA 777 [7]

the answer to 7 times z reduced by a third of the product is 2z

3 0
1 year ago
Read 2 more answers
Write a paragraph that has an inverted triangle shape. The topic sentence should be, “Trees are helpful.” Include at least three
yaroslaw [1]
  Why trees are helpful........................................
                         ..................................................................
                            ............................................................
                                .....................................................
                                   ..............................................
                                        ..................................
Very easy just state facts about trees in a format like this. Google why trees are helpful and some facts should pop up. A good paragraph should have at least five (5) good strong sentences. 
 
4 0
1 year ago
Read 2 more answers
Other questions:
  • Atraeus is solving the quadratic equation by completing the square.7x^2 – 14x + 6 = 0 7x2 – 14x = –6 A(x^2 – 2x) = –6What is the
    13·2 answers
  • For a trip, one high school rented and filled 8 vans and 9 buses with 228 students. Another high school instead fit it's 124 stu
    5·1 answer
  • A waitress works 1.75 hours less in the afternoon than in the evening. If she works 5      1/8
    6·1 answer
  • Hadley paddled a canoe 2/3 mile in 1/4 hour. How fast did Hadley paddle in miles per hour ?
    6·1 answer
  • Three people get into an empty elevator at the first floor of a building that has 10 floors. Each presses the button for their d
    6·1 answer
  • This background applies to the next several questions. Assume a 15 cm diameter wafer has a cost of 12, contains 84 dies, and has
    15·1 answer
  • You have 3 online accounts in three different banks valued at: bank "A" = $250.67, 12% interest, bank "B" $765.13, 7% interest,
    5·1 answer
  • Which function represents g(x), a reflection of f(x) = Two-fifths (10)x across the x-axis? g(x) = Negative two-fifths(10)x g(x)
    5·1 answer
  • 7. Ella and her family normally pay $165 per
    9·1 answer
  • On a cm grid, point p has coordinates (3,-1) and point q has coordinates (-5,6) calculate the shortest distance between p and q
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!