Constants - Estia-advanced-programming/pandora-public GitHub Wiki
Since we want to compare computed values between your program and ours for every tests, we need to set up some ground rules. You will need constants. We list here some constant values you might need.
Important: If you need another constant, let us know. Call us, or even better, use the git repository to open an issue. We will then update this page so that everyone can use the same values.
Make sure to use the String.format("%.2f", variableName)
solution to display your results with a 0.01 precision.
-
Distances:
- 1 m =
3.281
ft
- 1 m =
-
Weights:
- 1 kg =
2.205
lbs
- 1 kg =
-
Power:
- 1 hp =
754.7
W
- 1 hp =
-
Temperature:
- 1 K = ℃ -
273.15
- 1 K = ℃ -
-
Pressure
- 1 psi =
6894.76
Pa
- 1 psi =
-
Speed:
- 1 kts =
1.852
km/h - 1 mph =
1.609
km/h -
1225
km/h = 1 Mach - Classification:
- Subsonic: Mach < 1.0
- Transonic: Mach = 1.0
- Supersomic: Mach > 1.0
- Hypersonic: Mach > 5.0
- 1 g =
9.80665
m/s2
- 1 kts =
-
Earth radius:
6,371
km
-
Distance between 2 longitude/latitude coordinates: see this link (uses the
haversine
formula) -
Approximation for speed and acceleration data for the first point (respectively the first two points):
repeat
the first value -
℃ to radian conversion: Use the Java built-in method
Math.toRadians(...)
You can convert double values to Instant Java objects.
In this case, you can access quick display options (via DateTimeFormatter
). For this, you need to define a zone. Use the .withZone(ZoneId.systemDefault())
. (Check this forum thread for more examples).
All flights happened around 8:00am in a particular timezone. With your system timezone, these flights should be around 4:00am.
- if a phase is not detected, report:
phase_name: not detected
- if no phase has a O2 concentration > 50%, report
oxygenPhase: none