(AGK version: 108.13)
Submitted: 2013-06-16 09:38:00
Setvirtualresolution(640,480)

Distance#=20.2
Angle#=24.0

Repeat
    Print("An observer stands")
    Print(Str(Distance#,2)+" metres from the base of a tree,")
    Print("looking at the top of the tree)"
    Print("the angle formed with the")
    Print("ground is "+Str(Angle#,2)+" degrees.")
    Print("")
    Print("How tall is the tree?")

    Height#=Distance#*Tan(Angle#)

    Print("The tree is "+Str(Height#,2)+" metres tall.")

    Sync()
Until Timer()>15

End
Help make AGK better by submitting an example for this command!
(All examples are subject to approval)
Login to post an example of your own.