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;
}
It has been given that y varies inversely with x, therefore the equation for this relationship is as follows;
y =

\
when y = -18 and x = 6
-18 = k/ 6 ---1)
We need to find x when y = 5
5 = k/x
when we divide 1)/2), k gets cancelled

x = -18*6/5
x = -21.6
when y = 5, then x = -21.6
First calculate the function of x-2y=6:
x-2y=6 | - x
-2y=6-x | ÷ (-2)
y=0.5x-3
Now you have the function. Because the slope you search is parallel to this one, the slope is the same (in this case 0.5). A slope of 0.5 means for 2 steps to the right go one up. To define the function you are searching you have to find out the y intercept. For this take your point (-2|4). Now go as many steps to the right until you reach the y intercept or x=0 in this case you need 2 steps. So for 2 steps right you go one up. Now you have the y intercept (5).
The resulting function is: f(x) = 0.5+6.
25d^2-30d-35d+42=25d^2-65d+42.