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
Nastasia [14]
3 years ago
10

The hypotenuse function is correct, but the main function has a problem. Explain why it may not work, and show a way to fix it.

Your fix must be to the main function only; you must not change the hypotenuse function in any way.
Mathematics
1 answer:
Drupady [299]3 years ago
7 0

Answer: hello your question is incomplete attached below is the missing codes

Answer : It may not work because; the double pointer P was not allotted a double using a new double ( I.e. Error in the main function ) also the cout statement was not written in the main function

Step-by-step explanation:

It may not work because; the double pointer P was not allotted a double using a new double ( I.e. Error in the main function ) also the cout statement  should be moved to the Main

<u><em>The correction  is below </em></u>

{

   double* p = new double;

   hypotenuse(1.5, 2.0, p);

  cout << "The hypotenuse is " << *p << endl;

}

You might be interested in
What is your heart rate supposed to be per minute
maria [59]
60 beats per minute is the answer
4 0
3 years ago
Which is a polar form of the following parametric equations ?
Vsevolod [243]

Answer:

r=4sin(theta)

Step-by-step explanation:

x=4sin^2(theta)        y=4sin(theta)cos(theta

theta=arcsin((sqrtx)/2)

y=4sin(arcsin(sqrtx/2))cos(arcsin(sqrtx/2))

graph each to see they line up

5 0
3 years ago
The axis of symmetry for the graph of the function is f(x) =1/4 x^2 + bx + 10 is x = 6. What is the value of b?
uranmaximum [27]
X=6 is the value if it
8 0
3 years ago
Read 2 more answers
Help me please I suck at this
Mkey [24]

Answer:

x=71

Step-by-step explanation:

180-38= 142

142/2= 71

it looks like x and the blank space are the same size

4 0
3 years ago
Read 2 more answers
Find the value of y when x=3. <br> y=10-3x<br> y=
Oliga [24]
Y=1 I hope this helps :)
7 0
3 years ago
Other questions:
  • Which statement is a correct interpretation of the vertical line test? If only one vertical line intersects the graph at exactly
    14·1 answer
  • Which of the following represents the factorization of the trinomal below
    6·1 answer
  • Find the possible value or values of y in the quadratic equation z^2 - 4z+ 4 =0
    9·1 answer
  • What is 2.5/5 simplified
    13·2 answers
  • Use Gaussian elimination to write each system in triangular form
    11·1 answer
  • A parking space shaped like a parallelogram has a base of 17 feet and a hight is 9 feet. A car parked in the space is 16 feet lo
    5·1 answer
  • HDW calculate distance on the coordinate grid?
    13·1 answer
  • What number is 56% of 161?​
    10·2 answers
  • On a certain hot summer's day, 321 people used the public swimming pool. The daily prices are $1.50 for children and $2.25 for a
    8·1 answer
  • Mia has 78 pound of bird food. She puts an equal portion into 4 bird feeders. How much bird food, in pounds, does she put into e
    12·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!