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
If you can answer 5 questions in an hour, how many questions can you complete in 3 hours? HINT: Use the proportion 5 questions :
Stella [2.4K]

Answer:

15

Step-by-step explanation:

1 hr: 5

2 hr: 10

3 hr: 15

3 0
3 years ago
2 + 2 = ? idk the answer bro i need help
Leto [7]

Answer:

That would be 4 man

8 0
3 years ago
Read 2 more answers
Find the indicated length. find LM
Roman55 [17]

The overall length is given as 22.

The line is split into 2 parts X and 3X.

So we have X + 3X = 22

Add X and #X to get 4X:

4X = 22

Divide both sides by 4 to get X:

X = 22 /4

X = 5.5

Now we know what X is so now replace x with 5.5 and solve for LM:

LM = 3X = 3*5.5 = 16.5

7 0
3 years ago
What is the volume of the item described?
densk [106]
612 π ​ m³ and <span>1922 m³ are your answers.</span>
8 0
3 years ago
Read 2 more answers
Pete borrowed $400 for 1 year. He paid back a total of $440. What was the interest rate per year?
OleMash [197]

I=PRT/100

1. Make R (rate) subject

R/100= I/PT

2. Substitute and calculate

r/100= i/pt

r/100= 40/400 × 1

(<em>4</em><em>0</em><em> </em><em>i</em><em>s</em><em> </em>from 440-400.<em>T</em><em>h</em><em>e</em><em> </em><em>i</em><em>n</em><em>t</em><em>e</em><em>r</em><em>e</em><em>s</em><em>t</em>)

r/100= 0.1

r/100×100= 0.1×100

r=10% (interest rate per year)

To confirm

I=PRT

I= 400×10/100×1

I= $40 (Interest)

5 0
3 years ago
Read 2 more answers
Other questions:
  • Which set of numbers can represent the side lengths, in inches, of an acute triangle? 4, 5, 7 5, 7, 8 6, 7, 10 7, 9, 12
    11·2 answers
  • What would 13 be as a percentage
    5·2 answers
  • Finding factors of a number
    8·1 answer
  • Solve x 11, 13, 21,13
    7·1 answer
  • 3×- 5 =16 help please​
    7·2 answers
  • This graph shows how the total distance Jack has walked depends on the number of trips he has made to school.
    6·2 answers
  • Write the measure of each angle​
    10·1 answer
  • Which properties of transformed figures are always preserved(stays the same) under translations, reflections, and rotations? Sel
    12·1 answer
  • Plssssss help! I'm timed
    10·1 answer
  • Solve 54=y−14. i need help anything helps.
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!