Projectile Motion Verification Task

Objective: Verify that your JavaFX projectile motion simulation produces results consistent with manual calculations.

Problem

A cannon is located on the ground (elevation = 0 m). It fires a projectile at an initial velocity of 50 m/s and an angle of 30° above the horizontal. Gravity is \( g = 9.80665 \, \mathrm{m/s^2} \) and air resistance is ignored.

Tasks

  1. Manual calculation:
  2. Simulation: Set the sliders in the JavaFX app: Click Fire and record the results.
  3. Comparison: Compute percentage error using:
    \[ \text{Percentage error} = \frac{|\text{Simulation result} - \text{Manual result}|}{\text{Manual result}} \times 100\% \]

Reference Formulas

Time of flight (starting at elevation \(h = 0\)):
\[ T = \frac{2 v_0 \sin \theta}{g} \]
Maximum altitude:
\[ H_\mathrm{max} = \frac{(v_0 \sin \theta)^2}{2 g} \]
Range (starting at elevation \(h = 0\)):
\[ R = \frac{v_0^2 \sin 2\theta}{g} \]

Where \(v_0\) = initial velocity, \(\theta\) = launch angle, \(g\) = 9.80665 m/s²

Step 1: Manual Solution Example

Given: \(v_0 = 50 \, \mathrm{m/s}, \theta = 30^\circ\)

Step 2: JavaFX Simulation

Set the sliders according to the problem, click Fire, and record the simulation results:

Step 3: Compare Results

Quantity Manual Calculation Simulation Result % Error
Time (s) ? ? ?
Maximum Altitude (m) ? ? ?
Range (m) ? ? ?

Extension Exercises (Submission of manual solution is not needed)