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
The midpoint between 94.68 and 49.67
Brilliant_brown [7]

Answer:

72.175

Step-by-step explanation:

The first step is subtract 94.68 by 49.67 which would be 45.01

The next step would be to use 45.01 and divide by two

The last step would be subtract 94.68 by 22.505 and you would get 72.175

Therefore your answer would be 72.175

8 0
3 years ago
Two angles are supplementary. The first angle measures 40 degrees. What is the measurement of the second angle
Dmitrij [34]
Supplementary angles add up to 180º
If one is 40º, then the other is (180º-40º) = 140º

None of those choices describes a plane.
choice C is the only example of a plane.

8 0
3 years ago
Read 2 more answers
which set of numbers is the most reasonable to describe a persons hat size irrational numbers, whole numbers, rational numbers,
gavmur [86]
For this item, i go with letter D. Rational. The hat size cannot be integers as it includes negative numbers. For instance the person's hat size is 7 + 5/8 which leads to an answer of 7.625. That is a rational number. 

if this is the correct answer can i get most brainliest

5 0
3 years ago
Read 2 more answers
Evaluate the function below for x=3<br> F(x)= 2x^3-x^2-4x+9
agasfer [191]

Answer:

42

Step-by-step explanation:

f(3)=2(3)^3-(3)^2-4(3)+9

f(3)=2(27)-(9)-12+9

f(3)=54-21+9

f(3)=33+9

f(3)=42

3 0
3 years ago
Find the hypotenuse (2) of the right triangle.
Whitepunk [10]

Answer:

D) 13m

Step-by-step explanation:

To find the hypotenuse, use the formula for a² + b²= c², where a and b are the values of the triangle's two legs and c is the value of the hypotenuse.

In this case, a² = 7m and b² = 11m. Remember that there is no definite value for a or b, so they can be switched around.

So now our formula will look like this: 7² + 11² = c².

When squaring the two values, you will get a more simplified manner of the equation: 49 + 121 = c².

When we add them altogether, we get 170 = c²

That is not our answer yet, because we want the simplified, and not squared, form as the answer.

In order to do that, we must find the square root of √170, which is 13.0384048104, or just 13 when rounded to the nearest tenth.

So now we know that c², the hypotenuse, is approximately equal to 13.

Just to be sure, plug in all the value into the formula and try again.

  •       7² + 11² = 13².
  •       49 + 121 = 169
  •       170 ≈ 169

Notice: the reason why they are not both is because we rounded 13.0384048104 to 13. But if we square 13.0384048104, we get 170, which is the same value as the one above. Easy, right?

Hope this helps!

8 0
3 years ago
Other questions:
  • What happens to a line when it is rotated ?
    7·1 answer
  • Help me all please!!
    5·2 answers
  • The area of a rectangle is represented by 5x^2+19x+12. What is the length?
    11·1 answer
  • Which linear equations does the graph show the solution to? Select all that apply. y = 2x + 13 y = –x – 2 y = 3x – 5 y = negativ
    10·2 answers
  • An investment grows according to the exponential equation y = 15,000 · 1.07x, where x is the number of years invested. Which of
    11·1 answer
  • 9 x 27 + 2 x 31 - 28 = n
    13·1 answer
  • A factory makes car batteries. The probability that a battery is defective is 1/4. If 400 batteries are tested, about how many a
    14·1 answer
  • Please help i have no idea how to do it
    6·1 answer
  • 15. Ordered: gr. viiss<br> Label: 30% solution<br> How many ml do you use?
    7·1 answer
  • Emma drove 5 hours and 20 mins to her vacuum she left home at 10:15 am what time did she arrive
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!