Boy Scout Troop 69 has 50 members. Write a program in which the troop leader can enter the number of bottles of energy drinks sold by each scout, and output the total number of bottles sold and the mean and median value.
Answers
Answered by
5
Explanation:
Let AB be the tower and (A, B)
the flag staff, CA=hm
Let D be observation point, such that angle of elevation of top & c bottom, be α & β respectively.
In ΔABD,
tanβ=
BD
AB
BD=ABcotβ …………..(1)
In ΔCBD,
tanα =
BD
CB
BD=CBcotα[∴CB=CA+AB=h+AB]
BD=(h+aB)cotα ………(2)
Equating (1) & (2) equation,
ABcotβ=(h+AB)cotα
ABcotβ=hcotα+ABcotα
AB(cotβ−cotα)=hcotα
AB=
cotβ−cosα
hcotα
AB=
tanβ⋅tanα
tanα−tanβ
tanα
h
AB=h(
tanα−tanβ
tanβ
),
Similar questions