# Variables
distanceTravelled = 80. * 1000 #in meters
timeOfTravel = 2 * 3600. #in seconds
# Calculations and Results
Velocity = distanceTravelled / timeOfTravel #in meter/second
print "Velocity = %.1f m/s "%(Velocity);
# Variables
mass = 120 #in kg
acceleration = 10 #in m/s**2
# Calculations and Results
force = mass * acceleration * 0.001 #in kN
print "Force = %.1f kN "%(force);
# Variables
mass = 60 #in kg
accelerationDueToGravity = 9.8 #in m/s**2
# Calculations and Results
weight = mass * accelerationDueToGravity #in N
print "Weight = %.0f N "%(weight);
# Variables
Pg = 12E5 #in N/m**2 #inlet gauge pressure
Pvac = 75. / 1000 #in m Hg #exit gauge pressure
atmosphericPressure = 760. / 1000 #in m Hg #atmospheric pressure
density = 13.6 * 10**3 #kg/m**3 #density of mercury
g = 9.805 #in m/s**2 #acceleration due to gravity
# Calculations and Results
Pvac = density*g*Pvac #Pvac in N/m**2
atmosphericPressure = density*g*atmosphericPressure #atmospheric pressure in N/m**2
PabsInlet = atmosphericPressure + Pg #in N/m**2 #absolute inlet pressure
PabsExit = atmosphericPressure - Pvac #in N/m**2 #absolute exit pressure
print "At the inlet, absolute pressure = %.3f kPa "%(PabsInlet*.001);
print "At the exit, absolute pressure = %.3f kPa "%(PabsExit*.001);
# Variables
mass = 50 * .001 #in kg
volume = 0.04 #in m**3
# Calculations and Results
specificVolume = volume / mass #in m**3/kg
density = 1/specificVolume #in kg/m**3
print "Specific density = %.2f m**3/kg "%(specificVolume);
print "Density = %.2f kg/m**3 "%(density);
# Variables
temp = 100; #in degree Celsius
# Calculations and Results
TEMP = temp + 273.15;
print "Temperature in Kelvin = %.2f K"%(TEMP);
# Variables
TEMP = 263.15; #in Kelvin
# Calculations and Results
temp = TEMP - 273.15;
print "Temperature in degree Celsius = %.2f degree C"%(temp);