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
What are the discontinuities of the function f(x) = the quantity x squared minus 16 over the quantity 4x minus 24?
ANEK [815]
Dividing x^2 - 16 by 4x - 24  gives the quotient (1/4)x + 3/2

y = (1/4)x + 3/2  would be an asymptote  ( discontinuity)

Another would be a vertical discontinuity  when x =  6  (this would make the denominator 4x-24  = 0.
4 0
3 years ago
Read 2 more answers
Write down the factors of 55. Is 55 a prime or composite number? Explain how you know.​
horsena [70]

Answer:

Composite.

Step-by-step explanation:

because Prime numbers can only be recived when mulipltiy the number and itself, like 3.

55 can be mulipled by 1 AND 11 to get 55

4 0
3 years ago
Read 2 more answers
Select the two binomials that are factors of this trinomial.
Stella [2.4K]

we are given

trinomial as

x^2 -x -12

now, we can factor it

x^2 -x -12= x^2 -4x +3x -4*3

x^2 -x -12= x(x -4) +3(x -4)

x^2 -x -12= (x-4)(x+3)

so, option-C and D ..............Answer

4 0
3 years ago
I need help I don’t understand this at all
Alina [70]

Answer:

it is 60

Step-by-step explanation:

1= what, well its 60

7 0
2 years ago
Read 2 more answers
At a local store, kelly and martin bought some notebooks and pencils. Kelly bought 4 notebooks and 25 pencils for 16.71. Martin
Nat2105 [25]
Let n = cost of 1 notebook
Let p = cost of 1 pencil

Then,

3n + 4p = 8.5
5n + 8p = 14.5

You can solve for one variable in terms of the other and then substitute into the remaining equation.

3n + 4p = 8.5
+ 5n + 8p = 14.5

Multiply the top equation by -2 so that the p-containing terms cancel each other out:

-2(3n + 4p = 8.5)
+ 5n + 8p = 14.5
-n + 0 = -2.5

So after dividing both sides by -1, we see that n = $2.5. Plugging into the first equation gives p = $0.25.


3n + 4p = 8.5
5n + 8p = 14.5
6 0
3 years ago
Other questions:
  • There are 276 nickels. How many whole dollars can be made from this and with how many nickels left over?
    5·1 answer
  • Three consecutive vertices of a parallelogram are points (2, 4), (0, 0), and (6, 0). The fourth vertex is point
    7·1 answer
  • 4(g-16)+-11=-7 solve for g
    9·2 answers
  • Which equation has no solution?
    13·2 answers
  • Your local pizza store sells medium pizzas for $5.69 each, and breadsticks for $2.49 per order.
    8·2 answers
  • If fx)= {x-3, which inequality can be used to find the domain of f(x)?
    11·1 answer
  • The number of boys to girls in math class is 2:3 If there are 21 girls in Mrs. Vest's math class, how many boys are there? Can w
    9·2 answers
  • The ratio of boys to girls at a movie is 2:1.if there were five girls at the movie how many boys were there
    12·2 answers
  • What is the midline equation of y = -4sin (2x - 7) + 3?
    15·2 answers
  • (4/3)^-1 rewrite the following without an exponent
    12·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!