%
% Calculate the pressure of a column of air
%
% Author: Xin-Zhong Liang @ UMD
% Coded:  2012/09/03
%
  g = 9.8;            % acceleration due to gravity [m/s2]
  rho = input('Enter average air density [kg/m3] = ');
  h = input('Enter air column height [m] = ');
  p = rho * g * h;    % pressure of the column [Pa]
                      % potential bug: missing . before *
  disp(['Pressure [Pa] = ', num2str(p)])
