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
In triangle XYZ, XY = 13, YZ=20, and XZ=25. What is the measure of angle Z to the nearest degree?
anastassius [24]
We can use Law of Cosines to solve for the angle of Z. The solution is shown below:
cos C=(a²+b²-c²)/2ab
cos Z = (yz² + xz² - xy² )/2*yz*xz
cos Z = (20² + 25  - 13²)/2*20*25
cos Z = 856 / 1000
Z=31.13°

The answer is angle 31.13°. 
4 0
2 years ago
A grocery store sells an 18 ounce container of peanut butter for $3.28. What is the cost per ounce (unit price)?
AnnyKZ [126]
Here,
cost of 18 ounce container of peanut butter = $3.28
cost of 1 ounce container of peanut butter = $3.28/18
                                                                    =$0.182
7 0
2 years ago
Read 2 more answers
Convert 5 3/4 to a decimal round to the nearest tenth​
matrenka [14]

Answer: 5.75

Step-by-step explanation:

3/4=.75 then add the 5

6 0
2 years ago
Read 2 more answers
A reporter for a large sports television network wants to determine if "homefield advantage" is dependent upon the sport. He col
Ne4ueva [31]

Answer:

with 0.10 level of significance the P-VALUE that would be used in the hypothesis claim is 0.05%

Step-by-step explanation:

In hypothesis testing in statistics, we can say that the p-value is a probability of obtaining test results when we assume that the null hypothesis is correct.

The p-value is the probability that the null hypothesis is true.

A p-value less than or equals to 0.05  is statistically significant. It shows strong evidence against the null hypothesis, meaning  there is less than a 5% probability the null is correct and clearly we can say that the results are random.

8 0
1 year ago
You are told that a random sample of 150 people from iowa has been given cholesterol tests, and 60 of these people had levels ov
Vilka [71]

0.47 to 0.48

thats the answer

4 0
2 years ago
Other questions:
  • casey ran a 75 meter race in 10 seconds her distances at certain times during the race are shown in the table . what is the doma
    7·1 answer
  • A tunnel is in the shape of a parabola. The maximum height is 50 m and it is 10 m wide at the base as shown below. What is the v
    13·1 answer
  • How many units of a 10% solution are needed to prepare 500 units of a 2% solution?
    11·1 answer
  • Will give brainliest. Given a mean of 61.2 and a standard deviation of 21.4, what is the z-score of the value 45 rounded to the
    14·2 answers
  • Question 1
    10·1 answer
  • The graph shows the distance Kendrick walks in different lengths of time.
    6·2 answers
  • A greeting card is made up of three semicircles. Sarah wants to decorate the distance around the card with a ribbon, how much ri
    8·1 answer
  • A product is composed of four parts. In order for the product to function properly in a given situation, each of the parts must
    7·1 answer
  • Lincoln is measuring the angles of quadrilateral WXYZ to determine whether it is congruent to the quadrilateral below.
    14·1 answer
  • We want to evaluate dog owners’ reactions to a new dog food product formulation that contains more vegetables. A promotional boo
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!