function dms_print ( n, lat_dms, long_dms, title )

%*****************************************************************************80
%
%% dms_print() prints the latitude and longitude in degrees/minutes/seconds.
%
%  Licensing:
%
%    This code is distributed under the MIT license. 
%
%  Modified:
%
%    19 May 2016
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    integer N, the number of data items.
%
%    integer LAT_DMS(4,N), LON_DMS(4,N), the latitudes
%    and longitudes, in degrees, minutes and seconds.  The fourth
%    argument is +1/-1 for North/South latitude or East/West longitude.
%
%    string TITLE, a title.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, '%s\n', title );
  fprintf ( 1, '\n' );
  fprintf ( 1, '  #    Latitude            Longitude\n' );
  fprintf ( 1, '       (Deg/Min/Sec)       (Deg/Min/Sec)\n' );
  fprintf ( 1, '---  ---------------      ---------------\n' );
  fprintf ( 1, '\n' );
  for j = 1 : n
    fprintf ( 1, '(%3d  %4d%4d%4d  %s     %4d%4d%4d  %s\n', ...
      lat_dms(1:3,j), lat_char ( lat_dms(4,j) ), ...
      lon_dms(1:3,j), lon_char ( lon_dms(4,j) ) );
  end

  return
end
