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
- 9.9t = - 9.9 <br> solve for t
vampirchik [111]
T=1

Hope that helps bud!
5 0
3 years ago
Multiply: (4x – 7)(2x – 9)
Marizza181 [45]
Hello there!


Let's use foil.

First: 4x * 2x = 8x^2

Outside: 4x * -9 = -36x

Inside: -7 * 2x = -14x

Last: -7 * -9 = 63


Now, let's combine these.

8x^2 - 36x - 14x + 63

Finally, we can simplify this

8x - 50x + 63



I hope I helped!

Let me know if you need anything else!

~ Zoe


7 0
3 years ago
The points (6,8) and (5,5) fall on a particular line. What is the slope of the line passing through those points.
Gnesinka [82]

Answer:

y = 2/6x

Step-by-step explanation:

graph it.

use graph paper

8 0
3 years ago
Find the solutions to the system below<br><br> y=x2+6x<br><br> y=x−4
dangina [55]

both and then combine them or just find them 1 by 1

7 0
2 years ago
What is the value of x? (60 POINTS BRANLIEST IF RIGHT)
Aleksandr-060686 [28]

Answer:

Since all three of the interior angles are the same degree, the three sides must be the same length. So, 3x - 5, 4x - 30, and 2x + 20 must be equal.

To solve for x, you can just set one of the sides equal to another one of the sides. I will do 3x - 5 and 4x - 30.

3x - 5=4x - 30

Add 5 to both sides.

3x = 4x - 25

Subtract 4x from both sides.

-x = -25

Divide both sides by -1.

x=25

:)

8 0
3 years ago
Read 2 more answers
Other questions:
  • Engineers want to design seats in commercial aircraft so that they are wide enough to fit 99​% of all males.​ (accommodating 100
    7·1 answer
  • 25 POINTS!!!!!!!!!!<br> Evaluate log7 343.<br><br> A. 49<br> B. 3<br> C. −3<br> D. −49
    5·2 answers
  • Stacy goes to the county fair with her friends. The total cost of ride tickets Is given by the equation c = 3.5t, where c is the
    13·1 answer
  • What is the radius of a circle with circumference 22m? Instructions: Solve Each Problem. Round to the nearest tenth, If necessar
    15·1 answer
  • Marie purchased a $29.00 gift for a baby shower. She uses a coupon that offers 30% off. How much will Marie spend on the gift af
    5·1 answer
  • How do you graph x + y= -2?
    15·1 answer
  • Multiply.
    13·1 answer
  • An electrician needs to buy 12 3/5 yards of electrical wire. Wire is sold on spools that have 3 1/2 yards of wire in each. How m
    10·1 answer
  • Solve: -2/5 (1/4 x -4)
    15·2 answers
  • Pls i need help
    9·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!