All Tracks/learn encapsulation by building a projectile trajectory calculator/
Đang tải...
Hướng dẫn thử thách
1 / 24

Step 1

You are going to build a program that calculates and draws the trajectory of a projectile given the angle, speed and height of the throw. Start by importing `math`, you will use it a lot in this project as it has useful methods like `math.radians`, `math.cos`, `math.sin` and others. Also create these variables to have the value of the gravitational acceleration and some special symbols that will be useful later (use copy and paste for these). ```py GRAVITATIONAL_ACCELERATION = 9.81 PROJECTILE = "∙" x_axis_tick = "T" y_axis_tick = "⊣" ```
Vượt qua bài kiểm tra hiện tại để mở khóa bài tiếp theo.
main.py
UTF-8 • Tab Size: 2Kiểm tra bài:⌘↵
Test Output
Thử thách này không có bài test tự động. Hãy quan sát kết quả trực tiếp ở khung Preview.