Pizza Problem
The large "economy" size of an item is not always a better buy than the smaller size.
This is particularly true when buying pizzas.
Pizza sizes are given as the diameter of pizza in inches.
However, the quantity of pizza is determined by the area of the pizza and the area is not
proportional to the diameter.
Most people cannot easily estimate the difference in area between a ten-inch pizza
and a twelve-inch pizza, and so cannot easily determine which size is the best buy,
that is, which size has the lowest price per square inch.
In this case study we will design a program that compares two sizes of pizza to
determine which is the better buy.
INPUTS
Input will consist of the diameter in inches and the price for each of two sizes of pizza.
OUTPUTS
The output will give the cost per square inch for each of the two sizes of pizza and
will tell which is the better buy, that is, which has the lowest cost per square inch.
If they are the same cost per square inch, we will consider the larger one to be the
better buy.