?
Solved

I was asked to do this in class

Posted on 2008-02-07
11
Medium Priority
?
201 Views
Last Modified: 2010-04-21
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
Comment
Question by:ruffone
  • 6
  • 5
11 Comments
 
LVL 53

Accepted Solution

by:
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

by:Infinity08
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

by:ruffone
ID: 20843105
Thanks
0
Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

 
LVL 4

Author Closing Comment

by:ruffone
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

by:Infinity08
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

by:ruffone
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

by:Infinity08
ID: 20844195
The points should reflect how difficult/important a question is.
The grade should reflect how good the answer is.

For your reading pleasure :

        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

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

Expert Comment

by:Infinity08
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

by:ruffone
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

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

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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…
Article by: evilrix
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.

588 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question