Pizzacost application | Computer Science homework help
PizzaCost Application
The cost of making a pizza at a local shop is as follows:
Save your time - order a paper!
Get your paper written from scratch within the tight deadline. Our service is a reliable solution to all your troubles. Place an order on any task and we will take care of it. You won’t have to worry about the quality and deadlines
Order Paper NowLabor 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.
Formulas:
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