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
If h(x) = 6 – x, what is the value of (h circle h) (10)?
Marta_Voda [28]

Answer:

10

Step-by-step explanation:

hoh(x) = h(h(x)) = 6 - h(x) = 6 - (6-x) = 6 - 6 + x = x

then

hoh(x) = x

then

hoh(10) = 10

5 0
1 year ago
A STORE IS GIVING AWAY A $10 COUPON TO EVERY 7TH PERSON TO ENTER THE STORE AND A $25 COUPLON TO EVERY 18TH PERSON TO ENTER THE S
ankoles [38]
<span>The lowest common factor of 7 and 18 is 126 (this is a number that both 7 and 18 multiply into, in fact by each other). This means the 126th person will be the first to get both coupons.</span>
7 0
2 years ago
Roberto wants to display his 18 sports cards in an album. Some pages hold 2 cards and others hold 3 cards. How many different wa
WITCHER [35]
<span>65 = number of different arrangements of 2 and 3 card pages such that the total number of card slots equals 18. 416,154,290,872,320,000 = number of different ways of arranging 18 cards on the above 65 different arrangements of page sizes. ===== This is a rather badly worded question in that some assumptions aren't mentioned. The assumptions being: 1. The card's are not interchangeable. So number of possible permutations of the 18 cards is 18!. 2. That all of the pages must be filled. Since the least common multiple of 2 and 3 is 6, that means that 2 pages of 3 cards can only be interchanged with 3 pages of 2 cards. So with that said, we have the following configurations. 6x3 card pages. Only 1 possible configuration. 4x3 cards and 3x2 cards. These pages can be arranged in 7!/4!3! = 35 different ways. 2x3 cards and 6x2 cards. These pages can be arranged in 8!/2!6! = 28 ways 9x2 card pages. These can only be arranged in 1 way. So the total number of possible pages and the orders in which that they can be arranged is 1+35+28+1 = 65 possible combinations. Now for each of those 65 possible ways of placing 2 and 3 card pages such that the total number of card spaces is 18 has to be multiplied by the number of possible ways to arrange 18 cards which is 18! = 6402373705728000. So the total amount of arranging those cards is 6402373705728000 * 65 = 416,154,290,872,320,000</span>
6 0
2 years ago
Math 1314 lab module 2
denpristay [2]
What, is there a question or no?
8 0
2 years ago
The box plot compares Marta’s and Ani’s diving scores in the first several meets of the season.
astraxan [27]

Answer:

i hope this helps

Step-by-step explanation:

The answer would be A, or "A box-and-whisker plot. The number line goes from 0 to 12, and the box ranges from 4 to 10. A line divides the box at 7.

Step-by-step explanation:

If you plot the data (2, 4, 6, 8, and 12) it looks something like the poor box-and-whisker plot below

      ⊕←    |           Ф           |   →⊕

|---|---|---|---|---|---|---|---|---|---|---|---|

0  1  2  3  4  5  6  7   8  9 10 11 12

Description A describes that exact box-and-whisker plot.

5 0
2 years ago
Read 2 more answers
Other questions:
  • A computer is normally $899 but is discounted to $799. What percent of the original price does Shawn pay?
    12·1 answer
  • The College Board states that the average math SAT score is 514 with a standard deviation of 117. Colleen gathered data from 50
    9·2 answers
  • The expression x4 + 6x3 – 11x2 – 60x + 100 is equivalent to (x – 2)(x – 2)(x + 5)(x + 5). At what points does the graph of the f
    6·2 answers
  • remmi wrote the equation of the line y=1/3(x+2). He solved for x and got x=3y-2. which following is an equivalent equation for x
    11·2 answers
  • If you can buy 1/3 of a box of chocolates for 6 dollars, how much can you buy for 4 dollars?
    8·2 answers
  • Consider the diagram below. Which of the following is the value of X?
    9·1 answer
  • On her first day in a hospital, Kiri receives u1 milligrams (mg) of a therapeutic drug. The amount of the drug Kiri receives inc
    8·1 answer
  • An analyst wants to include the level of education to a regression model. The level of education has 4 possible values: HS, BS,
    12·1 answer
  • Howard solved 6 math problems in 16 minutes. Going at the same speed how much would he spend solving 30 problems?
    7·1 answer
  • Find the mean of the data in the dot plot below. Make sure to show your work and explain the steps you took in solving the probl
    7·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!