Question: Strategy The program should do the following: 1. take the diameter of the pizza in inches as input a. store the diameter as an integer
Strategy The program should do the following: 1. take the diameter of the pizza in inches as input a. store the diameter as an integer 2. take the price of the pizza as input a. store the price as a float 3. using the given pizza size and price, calculate how much the pizza costs per square inch, using the following facts: a. the diameter of a circle is twice the radius b. the area of a circle is rer2 square inches where r is the radius in inches: an accurate version of rt, approximately 3.14. is available in Python as pi in the math library. 4. output the cost of the given pizza price and size in dollars per square inch a, round the cost to two decimal places Submit Cancel
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
