/************************************************************* * pizzapi.cpp computes the area of a pizza and the price per square inch * * Input: Diameter of the pizza in inches * Price of the pizza in dollars adn cents * Output : Area of the pizza in square inches * Price per square inch in dollars and cents * Programmed By: Mark Cruz * Block 2B * Date 9/24/2002 ***************************************************************/ #include #include int main() { const double PI = 3.14159; cout << "Enter the diameter of the pizza in inches please: "; double diameter; cin >> diameter; double radius = diameter * .5; cout << "Enter price of the pizza in dollars and cents: "; double price; cin >> price; double area = PI * pow(radius,2); double pricepersquareinch = price/area; cout <<"\nThe area of your pizza is approximately " <