// areaOfNPizzas.js    P. Conrad for CISC103, sect 99, 10/23/2007

// return area of a bunch of pizzas
//  consumes: howMany, a number, the number of pizzas you have
//            diameter, a number, the diameter of each pizza
//  produces: the total area of all of those pizzas

function areaOfNPizzas(howMany, diameter) {
      
  // calculate the radius
	
  var radius = diameter / 2;
  var areaOfOnePizza = Math.PI * radius * radius;
  return (howMany * areaOfOnePizza);

} // function areaOfNPizzas

