Hints on Assignment 1

There are 144 square inches in one square foot.  Therefore, price per square inch = price per square foot / 144.

Remember the formula for the area of a circle is 3.14*radius*radius.

Total amount needed = amount needed per person * number of people

Number needed = total amount needed / size of each one

Total cost = total size in square inches * cost per square inch

Sample Answer

    You should check your program with this sample.   If there are 10 people the following costs and amounts would be involved.

  1. 2.5 bottles of soda costing $2.475 would be needed.
  2. The cake would need to be 13.333 inches long and cost $8.333
  3. For a pizza of 9 inch radius, the total area is 254.34 square inches. Therefore 10 people would need 1.18 pizzas costing $10.42.

Parts one and two are easier, I suggest you try those first.

WB01624_.gif (281 bytes) Back to Assignment 1