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
Is there a way to quickly find a function if you have a handful of ordered pairs?
Scilla [17]
Yeah. You basically have to look at every x value and see if for every x value, is there ONLY one y-value. So in your example, it is a function because every x value has only one y value. Let’s say you had (1,3) and (1,5). That would not be a function because the x value of 1 has TWO y values (3 and 5), therefore it is not a function.

That’s how you can easily spot if something is a function by just looking at a handful of ordered pairs. I hope this makes sense.
5 0
3 years ago
Read 2 more answers
Find the probability.
kvv77 [185]

Answer:

7/36

Step-by-step explanation:

1 die has 6 faces

When two dice are rolled, the total number of outcomes

= 6 × 6 = 36

The Probability of having(5) =

(1 & 4), (2 & 3) , ( 3 & 2), (4 & 1)

= 4

The probability of having (10) =

(5 & 5), (4 & 6) , ( 6 & 4)

= 3

The probability that the score on the dice is either 5 or 10.

P(5) + P(10)

= 4/36 + 3/36

= 7/36

8 0
3 years ago
Can someone sub to my youttube channel pls, its called Yakobu, it would really help out :)
loris [4]

Sure :)

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~`

5 0
3 years ago
In Jack's basement, there's an area that is 6 feet long and 5 , 5 feet wide for the kids to play ping pong. In Mike's basement,
zzz [600]

Mike's area basement is 2 times larger than Jack basement area.

<h3>Area of a rectangle</h3>
  • area = lw

where

l = length

w = width

Therefore,

Jack's basement area:

length = 6 ft

width = 5 ft

  • area = 6 × 5 = 30 ft²

Mike's basement area;

length = 12 feet

width = 5 feet

  • area = 12 × 5 = 60 ft²

Therefore, Mike's area basement is 2 times larger than Jack basement area.

Mike's basement area = 2(Jack basement area)

60 = 2(30)

learn more on area here:  brainly.com/question/12938042

3 0
2 years ago
a fish swims at a speed of 12 mph. a boy swims at a speed of 4.4 ft per s. how much faster does the fish swim than the boy in ya
aniked [119]
<span>12 mph = 17.6 ft/sec. Speed of fish
4.4 ft/sec . Speed of boy

</span><span>how much faster does the fish swim than the boy = 17.6 - 4.4 = 13.2 ft/sec.
</span>13.2 ft/sec. = 264 yards/min.<span>

</span>
5 0
4 years ago
Other questions:
  • Can the fraction 5/11 be changed to a terminating or a repeating decimal
    7·1 answer
  • Find the surface area of the rectangular prism below.
    8·1 answer
  • Solve the equation n+5=2n-1
    15·1 answer
  • What is equivalent to 69
    12·1 answer
  • Jesse earns $420 a week, and he works 5 days a week. What is his daily
    5·2 answers
  • The school cook made 30 pounds of potato salad for the school picnic. How many servings is this if each serving is 1/4 pound?
    14·2 answers
  • Please help !!!!!!!!!!!!!
    7·1 answer
  • 1.x(x+4)=5
    11·1 answer
  • YALL PLSSSSSSSS HELP IM SHAKING I NEED HELP PLSS
    6·1 answer
  • Please sean f y g funciones de variable real, tales que f(x)=4(x-1) y g(X)= 6-x/2
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!