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
Can you pls solve this
Neporo4naja [7]

Answer:

Me and my brother worked on this and now we got it.

Step-by-step explanation:

             (4)

       (9)        (7)

 (6)        (5)        (8)

7 0
4 years ago
A'Zaharia spent 1 2/4 hours mowing the back yard. After taking a break, she spent 2 1/4 hours mowing the front yard. How many ho
inn [45]
3 3/4 hours I think.
6 0
3 years ago
Read 2 more answers
a baseball diamond is square with side 90 ft. A batter hits the ball and runs toward first base with a speed of 24ft / s. at wha
julia-pushkina [17]

When I see "at what rate", I know this question must come from
pre-Calculus, so I won't feel bad using a little Calculus to solve it.

-- The runner, first-base, and second-base form a right triangle.
    The right angle is at first-base.

-- One leg of the triangle is the line from first- to second-base.
   It's 90-ft long, and it doesn't change.

-- The other leg of the triangle is the line from the runner to first-base.
    Its length is  90-24T.  ('T' is the seconds since the runner left home plate.)

-- The hypotenuse of the right triangle is

         square root of [ 90² + (90-24T)² ] =

         square root of [ 8100 + 8100 - 4320T + 576 T² ] =

         square root of [ 576 T² - 4320 T + 16,200 ]

We want to know how fast this distance is changing
when the runner is half-way to first base.

Before we figure out when that will be, we know that since
the question is asking about how fast this quantity is changing,
sooner or later we're going to need its derivative.  Let's bite the
bullet and do that now, so we won't have to worry about it.    

       Derivative of  [ 576 T² - 4320 T + 16,200 ] ^ 1/2 =

 (1/2) [ 576 T² - 4320 T + 16,200 ] ^ -1/2 times (576T - 4320) .

There it is.  Ugly but manageable.

How fast is this quantity changing when the runner is halfway to first-base ?
Well, we need to know when that is ... how many seconds after he leaves
the plate.

Total time it takes him to reach first-base = (90 ft)/(24 ft/sec) = 3.75 sec .
He's halfway there when   T = (3.75 / 2) = 1.875 seconds.  (Seems fast.)

Now all we have to do is plug in 1.875 wherever we see 'T' in the big derivative,
and we'll know the rate at which that hypotenuse is changing at that time.
Here goes.  Take a deep breath:

(1/2) [ 576 T² - 4320 T + 16,200 ] ^ -1/2 times (576T - 4320)  = 

[ 576 T² - 4320 T + 16,200 ] ^ -1/2 times (1152T - 8640)  = 

[576(1.875)² - 4320(1.875) + 16,200]^-1/2 times [1152(1.875)-8640] =

[    2,025      -  8,100  +  16,200 ] ^ -1/2  times   [ 2,160 - 8640 ]  = 

- 6480 / √10,125  =   - 64.4 ft/sec. 


I have a strong hunch that this answer is absurd, but I'm not going to waste
any more time on it, (especially not for 5 points, if you'll forgive me). 
I've outlined a method of analysis and an approach to the solution, and
I believe both of them are reasonable.  I'm sure you can take it from there,
and I hope you have better luck with your arithmetic than I've had with mine. 

4 0
3 years ago
Please tell me all the steps. Just tell me the short answer and a step-by-step equation.
Liono4ka [1.6K]

Answer: I think distribute the 1/4

Step-by-step explanation:

x-7=1/4 (x-10)\\4x-28=x-10\\4x=x-10+28\\4x=x+18\\4x-x=18\\3x=18\\x=18/3\\x=6

3 0
3 years ago
Read 2 more answers
Which points are on the the graph equation -3x+6y+5=-7
algol [13]
-3x + 6y + 5 = -7
<u>                -5    -5</u>
      -3x + 6y = -12
-3x + 3x + 6y = -12 + 3x
               <u>6y</u> = <u>-12 + 3x</u>
                6           6
                 y = -2 + 1/2x
-3x + 6(-2 + 1/2x) = -12
       -3x - 12 + 3x = -12
         -3 + 3x - 12 = -12
                0x - 12 = -12
                <u>     +12    +12</u>
                       <u>0x</u> = <u>0</u>
                        0     0
                         x = 0
           -3(0) + 6y = -12
                0 + 6y = -12
              <u>+0             +0</u>
                      <u>6y</u> = <u>-12</u>
                       6       6
                        y = -2
                  (x, y) = (0, -2)
6 0
4 years ago
Other questions:
  • How do u simplify 6(a+10) using the distributive property
    5·1 answer
  • A hot-air balloon is moving on a bearing of 2450 at 31mph. A wind is blowing with the bearing of 2600 at 23mph. Find the compone
    14·2 answers
  • (5 x 10^-2) divided by (3.0 x 10^4)
    7·1 answer
  • A new car has a sticker price of $23,750, while the invoice price paid on it was $22,950. what is the percentage markup?
    5·2 answers
  • What is the correct word representation for (1×1/10) + (2×1/100) + (3×1/1000)
    7·1 answer
  • What is the solution to proportion 3/m=12/15
    13·1 answer
  • Sixty out of every 100 pieces of candy is red. Which Indicates the
    11·1 answer
  • Is this true or false?
    10·1 answer
  • What is the cubed root 1/27
    13·2 answers
  • Write the number 7.8 x 10^3 in standard form.
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!