English translation

Warm-up task

Nothing this time. Well, install all you need and test whether you can print out 6 multiplied by 7.

Mandatory task

Write a program that will ask the user for the velocity and angle at which we shot a cannon ball, and it prints out how far the ball will fly.

You may need this: $$s = \frac{v^2\sin 2\phi}{g}$$, where $s$ is the distance, $v$ is the velocity, $\phi$ is the angle, and $g$ is the eighth letter of the Slovenian alphabet.

Try this: the distance is the largest when the angle equals 45 degrees. Check this by trying 45 and 46 at the same velocity. Also, try 50 degrees. If the ball goes backwards in this case, something is wrong. (Hint: this page on Wikipedia can give you a useful association.)

Extra task

None this time. We didn't cover enough Python yet.

Last modified: Tuesday, 6 October 2020, 8:10 PM