% hw004.m
% John Burkardt
% Evaluate Theron formula for weight of child as function of age
%
%  AGE is the child's age in years.
%  KG is the child's weight in kilograms.
%  LB is the child's weight in pounds.
%
age = input ( 'Enter the AGE: ' );

kg = exp ( 0.175571 * age + 2.197099 );
lb = kg * 2.20462;

fprintf ( '  Age = %d, KG = %g, LB = %g\n', age, kg, lb );