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
3 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]3 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
Drop ur snaps (14/15 yrs)
timurjin [86]

Answer:

audrey_111506

Step-by-step explanation:

6 0
3 years ago
Read 2 more answers
Given Ohm's Law, V=IR<br> which of the following operations will solve for I?
vodka [1.7K]

FOLLOW ME FOR CLEARING YOUR NEXT DOUBT

8 0
3 years ago
1. When a cannonball is fired, the equation of its pathway can be modeled by h = -1612 + 128t.
sashaice [31]

Answer:

The maximum height of the ball is 256m

Step-by-step explanation:

Given the equation of a pathway modelled as pathway can be modeled by h = -16t² + 128t

At maximum height, the velocity of the ball is zero.

velocity = dh/dt

velocity = -32t + 128

Since v = 0 at maximum height

0 = -32t+128

32t = 128

t = 128/32

t = 4seconds

The maximum height can be gotten by substituting t = 4 into the modelled equation.

h = -16t² + 128t

h = -16(4)²+128(4)

h = -16(16)+512

h = -256+512

h = 256m

4 0
3 years ago
Also need help with this
Crank
=7(∛2x) - 6(∛2x) - 6(<span>∛x)
= </span>∛2x - 6<span>∛x

answer
C. </span>∛2x - 6∛x
third choice
6 0
3 years ago
Please help asap!! What is the measure of angle A?
ozzi

Answer:

65

Step-by-step explanation:

because it is vertically opposite angles

3 0
2 years ago
Other questions:
  • A nut mixture of almonds and cashew nuts at a small fair is $1.00 per pound of almonds and $3.55 per pound of cashew nuts. Over
    12·2 answers
  • How many times can 14 go into 100
    14·2 answers
  • 5. Over what interval is the following graph DECREASING? *
    6·1 answer
  • What punctuation is used with titles of songs and short stories?
    7·1 answer
  • The area of a rectangle is 4n+16. What could the length and the width be?
    12·1 answer
  • I will mark brainliest. I need to write a proof for given: &lt;1=&lt;5 prove n||p I completely forgot how to do this and have at
    7·2 answers
  • Could someone help me out with this plss
    6·1 answer
  • The dollar value v (t) of a certain car model that is t years old is given by the following exponential function.
    10·1 answer
  • Lol I need help with this one too
    8·1 answer
  • How do I factor an expression using the GCF?
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!