Professional Documents
Culture Documents
Part 2
Part 2
BSIT603
In physics, an object that is in motion is said to have kinetic energy. The following
formula can be used to determine a moving object’s kinetic energy:
The variables in the formula are as follows: KE is the kinetic energy, m is the object’s
mass in kilograms, and v is the object’s velocity in meters per second.
Sample output:
Part 2.
1. Variable names used and their categories (5 points)
• Python implements a dynamic scoping rule. The variables declared in the main
program (mass and velocity) are accessible to the function kinetic_energy since
they are defined in the same namespace (global scope).