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
3х + бу = 24<br> figure out x and y intercept
____ [38]

Answer:

x int... (8,0)

y int... (0,4)

Step-by-step explanation:

6 0
4 years ago
Read 2 more answers
I can travel 612 miles in 1 hour in my super speedy plane. Assume that there are 5,280 ft per mile. How many get would I travel
mixas84 [53]

Answer:

3231360

Step-by-step explanation:

5280 x 612 equals 3231360

6 0
3 years ago
Please help me out here ​
Karolina [17]
Search on khan academy for help
6 0
4 years ago
1/3÷100 will the answer be smaller than 1 close to 1 or much greater than 1
Radda [10]

Answer:

It will be smaller than one

Step-by-step explanation:

because i said so

7 0
3 years ago
If m={prime integers between 1 and 11} <br>N={Factor of 12} find<br>1. MuN<br>2.MnN​
babymother [125]

M = {2, 3, 5, 7} (and possibly includes 11 if "between x and y" means to include both x and y)

N = {1, 2, 3, 4, 6, 12}

Then

M U N = {1, 2, 3, 4, 5, 6, 7, 12}

(or possibly {1, 2, 3, 4, 5, 6, 7, 11, 12})

M ∩ N = {2, 3}

3 0
3 years ago
Other questions:
  • Volume of a prism h=2 w=4 l=3
    11·1 answer
  • 4 thousand 7 hundredths
    7·2 answers
  • Which of the following represents the zeros of f(x) = 6x3 + 25x2 − 24x + 5?
    14·1 answer
  • Which decimal is equal to one fifth? 0.6, 0.15, 0.2, 0.3, 0.4
    11·2 answers
  • Sine, cosine, and tangent are used when looking for a missing side length in the right triangle. True or False
    6·1 answer
  • Why do we randomly select our samples?
    5·2 answers
  • Dinosaur height: Scale of 1 in: 73.5 ft<br> Model:<br> in. Actual: 12.25 it
    8·2 answers
  • there are 1020 entries in a photo contest Six judges will review an equal number of photos.How many photos will each judge revie
    5·1 answer
  • There are square tiles arranged in a pattern. the pattern has rows that are 5 tiles wide and an unknown number of rows. if you t
    9·1 answer
  • Pls answer I will mark brainliest
    11·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!