Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

price = float(input('Enter price: ')) diameter = float(input('Enter diameter in inches: ')) area = pi*(diameter/2)**2 cost_per_square_inch = price/area print('Cost per square inch is $%.2f' %

price = float(input('Enter price: ')) diameter = float(input('Enter diameter in inches: '))

area = pi*(diameter/2)**2

cost_per_square_inch = price/area

print('Cost per square inch is $%.2f' % cost_per_square_inch)

if cost_per_square_inch > 0.1:

print('The pizza is too expensive') else: print('Buy it. It\'s a good idea!')

Write a graphics python program!!!!!!! to calculate the cost per square inch of a circular pizza and use graphics .py libaray!!!!! . Accept as input the diameter (in inches) and pizza price. Print the cost per square inch. If the cost per square inch is more than $.10 print a message that informing the user that this pizza is too expensive. Otherwise let the user know this is a good deal!

* Calculate the total

*Set 3 fields

Example : Enter the price , Enter diameter in inches and Cost per square inches is

*create edit text field in rows of above three fields

* use if statement and other operators

* use grapics.py libaray

and name it pizza.py.....This is a PYTHON language!!!!!!!!!!

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Filing And Computer Database Projects

Authors: Jeffrey Stewart

2nd Edition

007822781X, 9780078227813

More Books

Students also viewed these Databases questions

Question

What is the basis for Security Concerns in Cloud Computing?

Answered: 1 week ago

Question

Describe the three main Cloud Computing Environments.

Answered: 1 week ago