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 cone of the volcano has a height of 405 meters and a diameter of 438 meters. find the volume of the cone. round your answer
Murljashka [212]
The answer should be 81363900
7 0
3 years ago
PLEASE HELP (100 POINTS)
Artyom0805 [142]

\\ \rm\Rrightarrow f(x)=-5cos\dfrac{x}{2}+5

Compare to standard equation of SHM

\\ \rm\Rrightarrow y=Acos(\omega x+\phi)

Here

  • Amplitude=A=-5

\\ \rm\Rrightarrow \omega x=\dfrac{x}{2}

\\ \rm\Rrightarrow \omega=1/2

Well the above one are for extra knowledge .

Solution:-

\\ \rm\Rrightarrow 10=-5cos\dfrac{x}{2}+5

\\ \rm\Rrightarrow 10-5=-5cos\dfrac{x}{2}

\\ \rm\Rrightarrow 5=-5cos\dfrac{x}{2}

\\ \rm\Rrightarrow cos\dfrac{x}{2}=-1

\\ \rm\Rrightarrow \dfrac{x}{2}=cos^{-1}(-1)

\\ \rm\Rrightarrow \dfrac{x}{2}=\pi

\\ \rm\Rrightarrow x=2\pi

So.

\\ \rm\Rrightarrow x=2\pi+2\pi n

3 0
3 years ago
Read 2 more answers
PLS PLS PLS PLSSSSS HELPPPP
ioda

Answer: 14

Step-by-step explanation:

Okay so it asks in all, which means morning distance + afternoon distance

We got the afternoon distance so now we have to find the morning one

it says the afternoon distance (6), is 25% less than the morning distance.

Which means the afternoon distance is 0.75 of the morning distance.

so 0.75x = 6, x = 6/0.75 = 8

Then you add 8 to 6 to get 14

6 0
3 years ago
binks need to raise at least $3600. He was given $200 and plans to save $50 per week. Select all the inequalities in this situat
-BARSIC- [3]

Answer:

First of read all formulas

Step-by-step explanation:

Calculate 50 *7 and add 350 and 200

6 0
3 years ago
What are the two numbers that go there
gladu [14]

Answer:

7 ÷ 4

Step-by-step explanation:

Another example would be:

12/3  = 12 ÷ 3

The number at the front will be the numerator while the second number will be the denominator

7 0
3 years ago
Read 2 more answers
Other questions:
  • !!!TIME LIMIT PLZ HURRY!!!Which describes the relationship between &lt;1 and &lt;2?
    14·2 answers
  • Let x be 3 and y be 4 and z is 5 <br> x + y / xz
    14·2 answers
  • A certain species of animal is endangered and it’s numbers are decreasing 12% annually. There are currently 230 animals in the p
    6·1 answer
  • The capacity of the milk pitcher on the counter is 9/10 liter each one pitcher has3/8 of milk in it and the other pitcher has 5/
    7·1 answer
  • Translate the sentence into an inequality.
    6·2 answers
  • *brainliest for best answer thank you* Solve for b.
    5·1 answer
  • I need help ASAP!! Please explain how to solve the problem
    10·1 answer
  • Brooke has set up 70 chairs in equal rows for the class talent show. But,there is not room for more than 20 rows. What are the p
    12·1 answer
  • Mr. Mika paid a total of $150 to rent a room at a hotel for two nights. The table shows information about four other
    15·1 answer
  • Help me for brainlistt
    8·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!