function result = avgAcc(v1, v2, t1, t2);
% averageAccel finds the average acceleration given the change in velocity
% and the change in time;
%
% consumes: v1, v2 the velocity initial and final velocity in m/s
%           t1, t2 the initial and final time in secs
% produces: reuslt the average acceleration
%
% examples:
%    >> avgAcc(100, 200, 1, 5);
%    ans = 
%       25
% examples:
%    >> avgAcc(300, 200, 1, 3);
%    ans = 
%       -50
%    >>   
%
% James Mandala Cisc106 Sect 80 10/01/07

result = (v2 - v1) / (t2- t1);
return;
end
