Pizzacost application Computer Science homework help
The cost of making a pizza at a local shop is as follows:
Labor cost is $0.75 per pizza, regardless of size.
Rent cost is $1.00 per pizza, regardless of size.
Materials is $0.05 * diameter * diameter, where diameter is measured in inches.
You will store the labor, rent, and size of the pizza as constants.
materials = .05 * diameter * diameter
pizzaCost = labor + rent + materials
Create a PizzaCost application that displays the cost of making the pizza based on a size stored in a variable. The application output should look similar to:
Enter the diameter of the pizza in inches: 16
The cost of making the pizza is: $14.55
Is this the question you were looking for? If so, place your order here to get started!