1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Rudiy27
4 years ago
14

oe’s Pizza Palace needs a program to calculate the number of slices a pizza of any size can be divided into. The program should

perform the following steps: Ask the user for the diameter of the pizza in inches. Calculate the number of slices that may be taken from a pizza of that size. Display a message telling the number of slices. To calculate the number of slices that may be taken from the pizza, you must know the following facts: Each slice should have an area of 14.125 square inches.To calculate the number of slices, simply divide the area of the pizza by 14.125.The area of the pizza is calculated with this formula: Area = "pi r squared" where pi is approximately 3.14159 and r is the radius (half the the diameter). To calculate the number of slices that may be taken from the pizza, you must know the following facts: Each slice should have an area of 14.125 square inches. To calculate the number of slices, simply divide the area of the pizza by 14.125. The area of the pizza is calculated with this formula: Area = "pi r squared" where pi is approximately 3.14159 and r is the radius (half the the diameter).

Mathematics
1 answer:
Shkiper50 [21]4 years ago
4 0

Answer:

# the user is prompted to enter diameter in inch

diameter = int(input("Enter the diameter of the pizza you want (in inch): "))

# the value of PI is saved as a constant

PI = 3.14159

# the area of the pizza is calculated using pi r squared

# the value of r is diameter divide by 2

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

# the value of area is displayed

print(area)

# the number of slice is calculated as area divide by 14.125

# integer division is use to get number of slice

number_of_slice = area // 14.125

# the number of slice is displayed to the user

print("Your number of pizza slice is: ", number_of_slice)

Step-by-step explanation:

The code is written in python and well commented. A sample image of output when code is executed is attached

You might be interested in
-5 = 5/10 + z<br> Brainly
Morgarella [4.7K]

Answer:

z = -10

Step-by-step explanation:

5/10 = 1/2

1/2 of 10 = 5

5 0
3 years ago
Which is the best example of selecting a systematic random sample?
umka21 [38]

Answer:

The answer is:

(A) Two distinct groups are formed from members of a population based on some characteristic, and a random  sample of 50 people is selected from each group.

Hope this helps! Have a great morning/noon/afternoon/evening/night!

8 0
3 years ago
Read 2 more answers
One reading at an arctic research station showed that the temperature was -35c. what is this temperature in degrees fahrenheit?
allsm [11]
To convert celsius t fahrenheit, multiply the celsius number by 1.8 FIRST. Then you add 32 to it after.

-35 x 1.8 + 32 = -31
4 0
3 years ago
It takes Bob 3 hours and 30 minutes to drive from Albuquerque to Las cruises which is 360 km away?​
nata0808 [166]

Answer:

it actually takes 3 hours and 11 min.

Step-by-step explanation:

in no sure what you are trying to ask

7 0
4 years ago
a newspaper has 80 Pages if 20 of the 80 pages are devoted to advertising what percent of the newspaper is advertising
forsale [732]
20/80=1/4
1/4=0.25
0.25*100=25

25% of the pages are devoted to ads.

Hope this helps!
Your fortune is "When frustrated, sing/scream the alphabet inside a public bathroom."
8 0
3 years ago
Other questions:
  • Three couples and two single individuals have been invited to an investment seminar and have agreed to attend. Suppose the proba
    15·1 answer
  • Write 9/12 as a sum of unit fractions
    12·2 answers
  • QUICK! What is the area of this trapezoid?
    5·1 answer
  • Which equation can be used to find one of the missing side lengths in the triangle?
    15·1 answer
  • Add 3 5/12 + 2 5/9 . Simplify the answer and write as a mixed number.
    13·1 answer
  • 36 is to 6 as 16 is to ?​
    12·1 answer
  • NEED HELP ASAP! Question in the photo.
    11·1 answer
  • ♡BRAINLIEST TO RIGHT ANSWER♡
    15·2 answers
  • Solve the logarithmic equation with Properties of Logs
    7·2 answers
  • X=2y-4 7x+5y=-66 solve by elimination
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!