function die_this_year_test ( )

%*****************************************************************************80
%
%% die_this_year_test() tests die_this_year().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    22 January 2025
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'die_this_year_test():\n' );
  fprintf ( 1, '  Test die_this_year(), which estimates the probability\n' );
  fprintf ( 1, '  that a particular judge will die within one year.\n' );

  fprintf ( 1, '\n' );
  fprintf ( 1, '  #    Prob Age  Name\n' );
  fprintf ( 1, '\n' );

  for index = 1 : 9
    age = judge_age ( index );
    sex = judge_sex ( index );
    p = die_this_year ( age, sex );
    [ first_name, last_name ] = judge_name ( index );
    fprintf ( 1, '  %d  %6.3f  %2d  %s %s\n', ...
      index, p, age, first_name, last_name );
  end

  return
end

