another 15 – 20 min. programming question…….

this program is also based on triangles.
Make a program in any programming language (preferably c++ but any other would do)
which will take as input three values they are
1] length of base of triangle(in cm)(eg. 5 cm)
2] the angle opposite to the base(eg. 60 degrees)
3] the ratio between the other two angles (eg. 1:8)
the program needs to use the above input data to calculate the length of the altitude of the triangle.

eg.
————-
Input:
10,90,1:1
————–
Output:
5 cm
———-
this should keep you busy for some time. 😉

Leave a Reply