1. ## functions in C++???

hi...
can some one help me start this problem for me..

i'm knew to C++ at the moment..

i have to write a program based on functions, and basically the info given is to find the height at which the ladder makes contact with the wall, given the length and the distance the base of the ladder is from the wall.

No angle, length and distance values are given.l

cheers,
Kashif.

2. Remember the Pythagorean Theorem - "a-squared plus b-squared equals c-squared"? You basically have a right triangle. The length of the ladder is the hypotenuse of the triangle and the distance from the wall is the base of the triangle. Your function simply has to figure out the remaining side. Pass in the two values you do know into the function, then use some of the math functions to calculate and return the result.

Code:
```double Height( double dLadderHeight, double dDistanceFromWall )
{
// Do your calculation here to figure out the value based on the
// values input into the function.  Basically, just solve the
// a*a+b*b=c*c equation for either "a" or "b" where "c" is the
// "dLadderHeight" value and one of the other variables is the
// "dDistanceFromWall" value.
}```

3. ## functions in c++....

Hi!
Thanx 4 ur help!!
Could u just check if ive done the prog. correctly?
Also ive got an exam coming up in a week and a half, i was wondering would u have any examples of mathematical function problems?

where u use loops make decisions but not really hard qs just to use some of the math functions. Would u also know any sites i can go into to view some of these example problems.

Thanks 4 ur help...
Kashif

4. Ahhh.......if you want him to check if you've done it correctly, shouldn't you post the code?

5. 1)finds the factorial of a number through iteration.

2)finds the sum of that number and all numbers below it greater than 0, you know like that weird looking E thing

They are pretty much alike and i'm too tired to be creative right now. So, go and practice.