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
Is this right? I’m unsure if I’m doing this correctly. Thanks
gogolik [260]
The answer is 24 as it's the smallest number given that is divisible by both 6 and 8.
4 0
3 years ago
Read 2 more answers
NEED HELP, LIMITED TIME, HURRY
11111nata11111 [884]

Answer:

9

Step-by-step explanation:

here you go!

6 0
3 years ago
Read 2 more answers
A pencil costs $0.25 more than an eraser. If the cost of eight pencils is $6.80, what is the cost of one eraser?
Sever21 [200]
6.80/8 = 0.85 + 0.25= 1.10
4 0
2 years ago
Read 2 more answers
Midpoint is the center point on the line segment <br> True or false?
Mariana [72]
Your Answer should be True
5 0
3 years ago
Help me please this is due today
avanturin [10]

Answer:

490

Step-by-step explanation:

19.6

25

980

3920

4900

then add the decimal

490.0

6 0
3 years ago
Other questions:
  • Sally gets a cup of coffee and a muffin every day for breakfast from one of the many coffee shops in her neighborhood. She picks
    15·1 answer
  • The table shows the values of y for each value of x. x y 2 1 3 1 4 -3 3 -3 Part A: Does the table represent a relation that is a
    9·1 answer
  • What is the range of y = sin θ ?
    14·2 answers
  • ⚠️❗️What is the volume of the regular pyramid below?
    10·2 answers
  • 6. Y(3.5, 1), Z(-4, 2.5)<br> Please help
    14·1 answer
  • Tom's property has a shape of a parallelogram with the dimensions of l= x +75 and w= x + 45. If the perimeter is 300 feet, what
    10·1 answer
  • PLEASSSSSSSSEEEEEEEEEEEEEEEE JUST ANSWER MY QUESTION STOP SKIPPING ME SHOW WORK PDF BELOW FIND SURFACE AREA PLEASE 50 POINTS
    5·1 answer
  • Solve.<br> 3.5 x (5.8 - 7.09) =
    11·1 answer
  • Please help this is due today!
    6·1 answer
  • What is the solution to this equation? <br><br> -8×+4=36
    13·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!