Your friends can move 20 boxes an hour, but they require one 16 inch (diameter) pizza for this work.  Write a function in Python that takes the number of boxes you have and returns how much square feet of pizza you will have to buy.  Use the function header:

 

sqFtPizza(numBoxes)

 

and have it return the square feet of pizza as a float.  Assume that the pizzas are perfectly round and that your friends require a full pizza even if they only work a partial hour.  (In case you’ve forgotten your geometry, the area of a circle is pi*r^2.  Use 3.14159 for pi.)

    • 10 years ago
    the code in working under python 3.4
    NOT RATED

    Purchase the answer to view it

    blurred-text
    • attachment
      program.zip