You are on page 1of 2

Nama anggota kelompok :

Aldo Erwin Manurung (14S14022) T. Elektro

Debora Silalahi (21S14017) M. Rekayasa

Andreas Sambulon Simamora (31S14024) T. Bioproses

Algoritma:

When space key pressed

Go to x : -200 y : -120

Ask masukkan kecepatan dan wait

Set Vo to answer

Ask masukkan sudut and wait

Set θ to answer

Set sin θ to sin of answer

Set cos θ to cos of answer

Set t to 0

Repeat until t = 2 * Vo * sin θ / g

Glide t secs to x: -200 + Vo * cos θ * t y: -120 + Vo * sin θ * t * t – 0.5 * g * t * t

Set x to Vo * cos θ * t

Set y to Vo * sin θ * t – 0.5 * g * t * t

Add t to waktu

Add x to posisi x

Add y to posisi y

Set g to 10

Set t to t + 1

When c key pressed

Delete all of waktu

Delete all of posisi x

Delete all of posisi y

When s key pressed


Stop all

You might also like