function range = findRange(initialVelocity, theta)
% findRange calculates the range of a launched projectile given the initial
% velocity and the the degree of launch when gravity is a constant 9.8
% m/s^2
%
% consumes: initialVelocity, the initial velocity of the projectile in
%                           meters per second
%           theta, the measure of the angle of launch in degrees 
%
% produces: range, the range of the projectile in meters
%
% examples:
%       >> findRange(10, 45)
%       ans =
%            10.2041 
%       >> findRange(25, 10)
%       ans =
%            21.8135
% Andrew Baker for CISC106, Sect 10A, 10/01/2007

    degrees = deg2rad(theta);
    range = ((initialVelocity)^2)/9.8 * sin(2 * degrees);
    return;

end

