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
What is the common ratio for this geometric sequence 72,12,2,1/3,1/18
Olin [163]
It is b 6 is the answer
8 0
2 years ago
Read 2 more answers
50 pts (and will mark brainliest)
Alex787 [66]

Answer:

c. 21/200

hope I helped!

6 0
2 years ago
Read 2 more answers
If A = -3 + 5i, B = 4 - 2i, and C = 1 +6i, where i is the imaginary unit, then A - BC equals
Maslowich

Answer:

3) -19 - 17i is our answer

Step-by-step explanation:

to solve A - BC we plug in the values given

A= -3 + 5i

B = 4 - 2i

C = 1 + 6i

-3 + 51i - (4 - 2i)(1 + 6i) is our expression. we can FOIL (4 - 2i)(1 + 6i) this expression out. FOIL stands for:

First

Outside

Inside

Last

i will highlight the terms i am using in the current step in bold and put the result next of those two terms next to the expression

F: (4 - 2i)(1 + 6i) = 4

O: (4 - 2i)(1 + 6i) = 24i

I: (4 - 2i)(1 + 6i) = -2i

L: (4 - 2i)(1 + 6i) = 12 < --- the reason why its 12 and not -12i or 12i is because <em>i</em> = √-1 and i² = -1

when we multiply -2i * 6i, we would have gotten a -12i², and i² = -1, so we are multiplying -12 by -1, which gives us 12 as the result

combining all these terms together and we have:

4 + 24i - 2i + 12

in the expression this is:

-3 + 5i - (4 + 24i - 2i + 12) < we need to distribute the negative sign into (4 + 24i - 2i + 12) and we now get:

-3 + 5i -4 - 24i + 2i - 12 < combine like terms (ex: i terms together)

-3 - 4 - 12 = -19

5i - 24i + 2i = -17i

the result of the expression is:

-19 - 17i

we cannot simplify this any further so this is our answer. the answer choice that matches this is 3, so 3) -19 - 17i is our answer

6 0
3 years ago
The sum of angle V and angle W is 90 degrees. If cos W = 5/13, what is sin V? A. 5/13 B. 12/13 C.12/5 D. 13/5
Savatey [412]

Answer:

I think the answer to the question should be C

Step-by-step explanation:

3 0
2 years ago
If It is known that 5
makkiz [27]
Could u give the rest of the question?
7 0
2 years ago
Read 2 more answers
Other questions:
  • Which polynomial function has zeros when x= -2, 3/4, 5
    12·1 answer
  • -x + 4y = 6 what is the slope of the line in equation above <br><br> Quick pleaseee
    13·1 answer
  • nick bronson is paid $6 for each birdhouse he assembles. If he made 12 yesterday and 17 today, how much money he earn?
    13·2 answers
  • Which of the graphs below represents the equation 4x + y = 7? Graph A Graph B Graph C Graph D
    9·1 answer
  • Help pleaseeeee ! ASAP
    5·1 answer
  • Misty is buying a house for $385,000. She is financing $345,500 and obtained a 15-year, fixed-rate mortgage with a 4.875% intere
    10·1 answer
  • Solve each please and tell me which have an equivalent expression
    12·1 answer
  • What breaks yet never falls, and what falls yet never breaks?
    14·2 answers
  • Find the area of the polygon.
    11·1 answer
  • In a recent study on world​ happiness, participants were asked to evaluate their current lives on a scale from 0 to​ 10, where 0
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!