function pricePerUnit = pricePerAreaOfPizza (diameter, price)
% This function calculates the price per unit of a pizza
% 
% inputs: diameter, price
% output: price per unit of the pizza
%
% written by Ilknur Aydin and CISC106-010 section students on 9/14/2007


% some extra comments can be written here

% calculate the results
Area = pi * diameter/2 *diameter/2 
pricePerUnit = price/Area

