§ I
This is the program 'structural'.
Include 'units.ver'.
Create 'mass' as a double<kilogram> with value 500.0.
Create 'g' as a double<acceleration> with value 9.81.
/* Newton = kg * m/s2. The compiler verifies this! */
Create 'weight' as a double<Newton> with value 'mass' multiplied by 'g'.
Export 'weight' as 'Calculated Weight' for report.
End of the program 'structural'.
§ II
This is the program 'projectile'.
Include 'units.ver'.
Create 'v0' as a double<velocity> with value 50.0.
Create 'time' as a double<second> with value 2.0.
Create 'dist' as a double<meter> with value 'v0' multiplied by 'time'.
Call 'printf' with "Distance: %.2f m
" and 'dist', stored to nothing.
End of the program 'projectile'.