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
A manufacturer determines that the cost of making a computer component is $2.161616. Write the cost as a fraction and as a mixed
weqwewe [10]
\bf 2.16161616\overline{16}\\\\&#10;-------------------------------\\\\

\bf \textit{let's say }x=2.16161616\overline{16}\impliedby &#10;\begin{array}{llll}&#10;\textit{now, let's multiply it by a power}\\&#10;\textit{of 10, so the repetitive part is at}\\&#10;\textit{the left-side, thus 100}&#10;\end{array}&#10;\\\\\\&#10;\begin{array}{llll}&#10;100\cdot 2.16161616\overline{16}\implies 216.161616\overline{16}&\implies 214+2.161616\overline{16}\\&#10;\qquad \qquad \uparrow &\qquad \qquad \uparrow \\&#10;\qquad 100\cdot x&\qquad \quad 214+x&#10;\end{array}

\bf 100x=214+x\implies 100x-x=214\implies 99x=214&#10;\\\\\\&#10;x=\cfrac{214}{99}\implies x=2\frac{16}{99}
7 0
3 years ago
Read 2 more answers
PLEASE HELP BEST ANSWER GETS BRAINLIEST
astraxan [27]
Since y=Mx+b (m being slope and b being y-intercept,
The answer is y=2x-7
7 0
3 years ago
Pls help me with this I have 5 minutes to do this I will give brainleast plzz
weeeeeb [17]

Answer:

The answer for the first one is 1/2.

The answer for the second one is -1/1

Step-by-step explanation:

Hope that helps you :)

8 0
3 years ago
If you made a graph to represent a situation where each avocado costs $0.89, what would be the slope of the line?
tatuchka [14]
Y=.89x
X- amount of avocados
Y- $total of avocados
.89- for each or 89/100 every avocados
7 0
3 years ago
Pablo tiene $150 pesos, se gastó la tercera parte de su dinero el domingo, y el lunes se gastó las 2/5
sergeinik [125]

Answer:

Step-by-step explanation:

3 0
2 years ago
Other questions:
  • A number is multiplied by 2,and tgen the product is added to 9. Tge result is 49.Whatvus tye number
    10·1 answer
  • A car is traveling at a rate of 40 miles per hour. What is the car's rate in kilometers per hour? How many kilometers will the c
    10·1 answer
  • What does 3y-y equal?
    7·1 answer
  • Which statement below is true?
    15·2 answers
  • A circular garden has a diameter of 6 yards what is a area of the garden
    11·1 answer
  • Solve the following inequality for x (nearest tenth):<br> -4&lt;-17.03-7x
    13·1 answer
  • What is the area of a circle with a diameter of 13.2cm
    13·1 answer
  • Mary got 85% correct on her math test. Mary missed 6 questions. How many total questions were on her math final?
    6·2 answers
  • Arrange the absolute value expressions in increasing order of their values. |-90| |-43| |47| |-55| |-88| |38| |-18|
    5·1 answer
  • Which answer is correct
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!