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
Which of the following is equivalent to 5/13^3
lys-0071 [83]

Answer:

.00227 or 5/2197

Step-by-step explanation:

following the basic rules of PEMDAS, we know that we have to solve for the exponent first.

so.... 5/2197

as a decimal, this is .00227...

8 0
3 years ago
Solve 1/2x + 3 &lt; 4x - 7
Serhud [2]
20/7 if you download the app photo math or go to the website symbalo it really helps with order of operations
3 0
3 years ago
What is the horizontal asympote of this graph?
Anna35 [415]

Using it's concept, it is found that the graph has no horizontal asymptote.

<h3>What are the horizontal asymptotes of a function f(x)?</h3>

The horizontal asymptote is the value of f(x) as x goes to infinity, as long as this value is different of infinity.

In this problem, we have that:

  • The function is undefined for x < 0, hence \lim_{x \rightarrow -\infty} f(x) is undefined.
  • For x > 0, the funciton goes to infinity, hence \lim_{x \rightarrow \infty} f(x) = \infty.

Thus, the graph has no horizontal asymptote.

More can be learned about horizontal asymptotes at brainly.com/question/16948935

#SPJ1

4 0
2 years ago
Mia is making costumes for a play. Each costume needs 3 7/9 yards of fabric. If Mia is making 6 costumes, how much fabric does s
mihalych1998 [28]
If she is making 6 costumes that need 3 7/9 yards each, the equation would be 6 x 3 7/9.

The answer to that equation would be 22 2/3.

How to get the answer:
3 x 6 = 18
7 x 6 = 42 (the seven is from the 7/9)
42/9 = 4 2/3

then add the eight teen and the 4 2/3 and you get 22 2/3.
3 0
3 years ago
If the tax rate is 6.5%, what is the tax on $80?
iren [92.7K]
Multiply 80✖️.065 and you'll get 8.80 Then add it to the total which is 80 +8.80 Which the answer is 88.80
6 0
3 years ago
Read 2 more answers
Other questions:
  • Which one of the following statements contains a quotient
    15·1 answer
  • What is -7+p=3 please give me a step by step explanation.
    9·2 answers
  • Help any one? Pls you’ve been so helpful pls don’t let it end
    7·1 answer
  • Describe a way to transform each graph so that it goes through the labeled points.
    9·1 answer
  • A professional lawn care service can mow 2 3/4 acres of lawn in one hour. how many hours would it take them to mow the lawn that
    5·1 answer
  • Please please help me out
    9·1 answer
  • Scientists found that the body of a male consists of 3.58×10^-4 lbs of zinc. What is the number written in standard notation?
    12·1 answer
  • You deposit $400 in an account. The account earns $72 simple interest in 6 years. What is the annual
    14·2 answers
  • 3(x + 2) = 8 + 3x – 2
    13·2 answers
  • n a car factory, 6 machines can make 6 wheels in 6 minutes. How long will it take 30 machines to make 30 wheels?
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!