Solved

# I was asked to do this in class

Posted on 2008-02-07
Medium Priority
201 Views
How do I write a program that will find the altitude of an isosceles triangle whose vertex angle is 38 degrees and whose equal sides are 7.9 meters long
0
Question by:ruffone
• 6
• 5

LVL 53

Accepted Solution

Infinity08 earned 1500 total points
ID: 20842938
The formula is :

altitude = side * cos(angle / 2)

altitude = 7.9 * cos(38 / 2) = 7.9 * cos(19) = 7.4696

assuming that by vertex angle you meant the angle at the tip of the triangle (between the two equal sides).
0

LVL 53

Expert Comment

ID: 20842944
I'll let you write the code for that ;) Give it a try, and post your result here ...
0

LVL 4

Author Comment

ID: 20843105
Thanks
0

LVL 4

Author Closing Comment

ID: 31428911
I don't know if this works I am asking this on behalf of someone but they will have to figure out the rest.
0

LVL 53

Expert Comment

ID: 20843654
>> I don't know if this works

I know ;)

May I ask why you gave a B grade ? That usually means that something was missing in the answer. If so, you can always ask for clarification - you don't have to accept an answer if you're not entirely happy with it yet.
0

LVL 4

Author Comment

ID: 20844109
I am sorry, I didn't mean to offend you in any way and if I did I am very sorry.  Usually though I give an "A" for a significant issue that was resolved. I offered the maximum points on an issue as an appreciation for the resolution. But the grade usually say how I feel about the issue that was resolved.
0

LVL 53

Expert Comment

ID: 20844195
The points should reflect how difficult/important a question is.

How many points should I assign to a question ? : http://www.experts-exchange.com/help.jsp#hi102
What's the right grade to give ? : http://www.experts-exchange.com/help.jsp#hi97

>> I am sorry, I didn't mean to offend you in any way and if I did I am very sorry.

I don't easily get offended ;) I was merely asking about the grade because maybe I could have done better with my answer, and if so, I want to know how, so I can become better at answering questions to the satisfaction of the askers :)
0

LVL 4

Author Comment

ID: 20844285
I didn't want to sound petty, but maybe your second response played a small role.
0

LVL 53

Expert Comment

ID: 20844328
>> but maybe your second response played a small role.

The reason for that second reply is that on this site, we're not allowed to solve assignments for askers. We're only allowed to answer specific questions, give hints in the right direction, etc. ... But the real work has to be done by the asker. We will however guide the asker until the end if needed.
0

LVL 4

Author Comment

ID: 20844472
I have never asked for help in the C++ section before. Quite frankly you guys are too smart for me. I work with VB and C#. I have a few open questions over there. In essence I am challenging your comment "We will however guide the asker until the end if needed." My experience here with C++ questions has being excellent. I am batting a thousand. But I have 1500 points up for grabs and a few that were deleted.
0

LVL 53

Expert Comment

ID: 20844506
I'm not an expert in any of the other zones you mentioned ;)
0

## Featured Post

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

C++ Properties One feature missing from standard C++ that you will find in many other Object Oriented Programming languages is something called a Property (http://www.experts-exchange.com/Programming/Languages/CPP/A_3912-Object-Properties-in-C.htâ€¦
Looking for a way to avoid searching through large data sets for data that doesn't exist? A Bloom Filter might be what you need. This data structure is a probabilistic filter that allows you to avoid unnecessary searches when you know the data definâ€¦
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.
###### Suggested Courses
Course of the Month5 days, 22 hours left to enroll