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 equation is equivalent to <br> f(x) =-4(x+7)^2-6
Vladimir [108]

Answer:

-4x-34

Step-by-step explanation:=−4x+−28+−6

=(−4x)+(−28+−6)

=−4x+−34

3 0
3 years ago
The cost of 90 kg of rice is 4500. what is the cost of 2 quintal of rice?​
gayaneshka [121]

Answer:

The cost of 2 quintal of rice is $10,000.

Step-by-step explanation:

To determine the cost of 2 quintals of rice, knowing that 90 kilos of said product is worth $ 4,500, it is first necessary to establish the equivalence between quintals and kilograms. In this regard, a quintal is equivalent to 100 kilograms, so 2 quintals are equivalent to 200 kilos.

Now, to determine the cost per kilogram of rice, the following calculation is required:

4,500 / 90 = X

50 = X

Therefore, 1 kilogram of rice costs $ 50. Thus, since 200 x 50 equals 10,000, 2 quintals of rice will cost $ 10,000.

5 0
3 years ago
Find the rate of change of total​ revenue, cost, and profit with respect to time. Assume that​ R(x) and​ C(x) are in dollars. ​R
tresset_1 [31]

Answer:

Step-by-step explanation:

Given the Total revenue R(x) = 2x

Cost C(x) = 0.01x²+0.3x+30 where;

x = 30 and dx/dt = 9units per day.

Rate of change of revenue dR/dt = dR/dx • dx/dt

dR/dt = 2dx/dt

dR/dt = 2(9) = $18

Rate of change of revenue with respect to time is 18dollars/day.

Rate of change of cost dC/dt = dC/dx • dx/dt

dC/dt = (0.02x+0.3)dx/dt

dC/dt at x = 30 and dx/dt = 9 will give;

dC/dt = {0.02(30)+0.3}×9

dC/dt = (0.6+0.3) × 9

dC/dt = 0.9×9

dC/dt = $8.1

Rate of change of cost with respect to time is 8.1dollars/day

Profit = Revenue - Cost

Profit = 18-8.1

Daily Profit = $9.9

4 0
3 years ago
Simplify (x^2 y^3) (x^4 y^2)<br> a. X^6y^5<br> b. x^8y^6<br> c. 2x^8y^6<br> d. 2x^6y^5
Vaselesa [24]
The correct answer would be A) X^6 Y^5
8 0
3 years ago
Which of the following equations has a graph PARALLEL to the line y = 4x + 7
Kobotan [32]

Answer:

y = 4x - 2

Step-by-step explanation:

This equation has the same slope as the equation given which means that they are parallel lines. This equation also has a y-intercept of -2.

I graphed both equations below to show you that they are parallel.

If this answer is correct, please make me Brainliest!

4 0
3 years ago
Other questions:
  • Choose the equation with the greatest answer <br><br>5 ÷ 0.4<br>5 × 0.4<br>5 + 0.4<br>5 - 0.4​
    11·1 answer
  • The perimeter of Dawna's new flat screen television is 112 inches. The ratio of its length to width is 4:3. Write and solve an a
    12·1 answer
  • Trevon, Leah, and Beth are playing a computer game. Trevon scores -8. Beth’s score was 3/4 of trevons score, and Leah’s score wa
    11·2 answers
  • What is 4575 rounded to the nearest thousand
    15·2 answers
  • Guys..please I really need you guys to help me please cause my hw will submit tomorrow
    15·1 answer
  • HHEELLLPPP MEEhbbnbjhjjh jhjhjhjh
    9·1 answer
  • What is the probability of rolling a 1 or 2 when a six-sided die is rolled 700 times. Round your answer to the nearest whole num
    7·2 answers
  • What type of polygon is pictured here
    5·1 answer
  • I don’t understand what it’s asking me to do and what I should do.
    13·2 answers
  • Which shows 0.00234 written in scientific notation?
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!