Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Given the radius, in inches, and price of a pizza, write a program to find the price of the pizza per square inch. Use float
-
Given the radius, in inches, and price of a pizza, write a program to find the price of the pizza per square inch. Use float data type and format to 2 decimal places. You must have a $ sign for the price per square inch. Use math.pi to get the value if PI.
Given the radius, in inches, and price of a pizza, write a program to find the price of the pizza per square inch. Use float data type and format to 2 decimal places. You must have a $ sign for the price per square inch. Use math.pi to get the value if PI.
To do this use:
import math
PI = math.pi
And then use PI to calculate area of pizza. Name your file ws3part1.py. Read the style guidelines before you submit the file.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access with AI-Powered Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started