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]
2 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]2 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
2 box plots. The number line goes from 175 to 450. For resort A, the whiskers range from 175 to 375, and the box ranges from 250
Maurinko [17]

Answer:its 275 for 1, and 325 for 2

Step-by-step explanation:

i did it

3 0
2 years ago
Read 2 more answers
You used p minutes one month on your cell phone. The next month you used 75 fewer minutes. Simplify the expression.
Anestetic [448]
Hi there!

Let's assume that one month is represented by the variable 'm', the amount of minutes you started with is 's', and minutes you spent is 'p'.

So, one month can be represented as 'm=s-p'.

The next month is a bit more tricky. This will incorporate 75 less minutes into the equation. 'm=s-75' can be used to represent this, as we assume that you didn't use any minutes in the first month, and that p=75 in this case.

If you found this especially helpful, I'd appreciate if you'd vote me Brainliest for your answer. I want to be able to assist more users one-on-one, as well as to move up in rank! :)
5 0
2 years ago
Mackenzie has a loyalty card good for a 20% discount at her local hardware store. What would her total in dollars and cents be,
8_murik_8 [283]

Answer: $14.0

Step-by-step explanation:

For us to calculate this question, we have to find 20% of $17.45 and then subtract the value gotten from $17.45. This will be:

= $17.45 - (20% × $17.45)

= $17.45 - (0.2 × $17.45)

= $17.45 - $3.49

= $13.96

= $14.0 to nearest cent

6 0
2 years ago
Read 2 more answers
A Shampoo Problem: A bottle contains 25.4 fluid ounces of shampoo. Katie uses 0.25 of the bottle. How much shampoo is left? a. I
kotykmax [81]

Answer:

a) There is no a word problem for both expressions (m = 0.25\cdot 25.4 and m = 25.4-0.25), b) A bottle contains 25.4 fluid ounces of shampoo. Katie uses 0.75 of the bottle. How much shampoo is left? A bottle contains 25.4 fluid ounces of shampoo. Katie uses 0.25 fluid ounces of the bottle. How much shampoo is left?

Step-by-step explanation:

a) The shampoo problem is a word problem for:

(Final content) = (Initial content) - (Used content)

Then,

m = 25.4 - 0.25\cdot 25.4

Or:

m = 0.75\cdot 25.4

Hence, there is no a word problem for both expressions (m = 0.25\cdot 25.4 and m = 25.4-0.25).

b) The word problem for m = 0.25\cdot 25.4 is:

A bottle contains 25.4 fluid ounces of shampoo. Katie uses 0.75 of the bottle. How much shampoo is left?

The word problem for m = 25.4-0.25 is:

A bottle contains 25.4 fluid ounces of shampoo. Katie uses 0.25 fluid ounces of the bottle. How much shampoo is left?

7 0
2 years ago
What is the domain and range of the equation y=500(1.08)^x
Marina CMI [18]
(x) is an element of a real number. This means it could be an integer, fraction or irrational number.

* As x approaches infinity, y approaches infinity.

* As x approaches minus infinity, y approaches 0.

-------------

Domain:

(x) is an element of a real number

Range:

y>0
6 0
2 years ago
Other questions:
  • I need to solve this equation: x= r-h/ y<br> for h and then for r
    11·2 answers
  • The time that a butterfly lives after emerging from its chrysalis can be modelled by a random variable tt, the model here taking
    9·1 answer
  • Mr. Malloy wants to make sure Amo and Javier get the best possible grade after five tests and can either give a grade based on t
    8·2 answers
  • Mrs. Powell has $800 invested in stocks and $500 invested in a Certificate of Deposit. The CD has an interest rate twice as grea
    9·2 answers
  • Apply the distributive property to factor out the greatest common factor. 12 + 20 =
    10·1 answer
  • · Andrew purchased some drinks and some chips.
    15·2 answers
  • Ainsley works for the owners of a bookstore. Her starting salary was 24,500, and she gets a 3% raise each year. Write an equatio
    6·1 answer
  • the dot plot above identifies the number of pets living with each of 20 families in an apartment building .what fraction of fami
    7·1 answer
  • A large ice chest holds 62 liters of water. A smaller chest holds 4/5 as much water
    9·1 answer
  • Concert R charges an admission fee of $10.00 and $6.25 per souvenir brochure. Concert S charges an admission fee of $13.00 and $
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!