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
The perimeter of a rectangular painting is 326 cm. if the width of the painting is 74 cm, what is the length?
True [87]
Perimeter (P) = 326 cm

Width (w) = 74 cm

Length (l) = ?

We know,

P = 2* (l + w)

326 = 2 (l + 74)

l + 74 = 163

l = 89 

Hence, length is 89 cm.
7 0
3 years ago
A shirt boutique purchased 100 new shirts for $1072. The short-sleeved shirts cost $10 each and the long-sleeved shirts cost $12
Scilla [17]

Answer:

one equation would be S+ L=36for the number of shirts sold.

4 0
2 years ago
Read 2 more answers
7+ X -9= -15 solve the equation
Aleksandr-060686 [28]
I believe the answer is x=24
6 0
3 years ago
Read 2 more answers
I need help with this question is it A,B C or D
mixer [17]

Answer:

c

Step-by-step explanation:

3 0
2 years ago
Read 2 more answers
What is the equation of the line that passes through the point (-6,6) and has an undefined slope ?
Likurg_2 [28]

Answer:

x = -6

Step-by-step explanation:

7 0
2 years ago
Other questions:
  • Which is the equation of the line with slope 2 that passes through (8,14).
    7·1 answer
  • . For a daily airline flight between two cities, the number of pieces of checked luggage has a mean of 380 and a standard deviat
    11·2 answers
  • What is the domain of the function f(x)=x−4÷√​6−x​​​ 
    11·2 answers
  • Can you help me with my school work
    7·2 answers
  • What is (-3)-(-6)×(-9)?
    13·1 answer
  • PLEASE HELP!!!
    6·1 answer
  • Answer thanks, show how you got the answer.
    10·1 answer
  • PLEASE HELP I NEED IT ASAP.
    8·1 answer
  • How can I do this. 0.025 as a percentage of 12.4. Rounded to two decimal places?
    7·1 answer
  • Help to solve for x by completing the square
    8·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!