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
Juanita borrowed $600 to purches a computer
4vir4ik [10]

Answer:

Juanita borrowed $600 to purchase a computer

Step-by-step explanation:

Grammer

7 0
3 years ago
Read 2 more answers
On a day, a video was posted online, 5 people watched the video. The next day the number of viewers had doubled. This tend conti
OleMash [197]

Answer:

128 ×5=640 so 128 people so after 4weeks

7 0
3 years ago
What are the coordinates of Jefferson High Schools courtyard
garri49 [273]
Well it would be (-4,1)
6 0
3 years ago
Help asap please, dhebduhd
Kamila [148]
Hi there !

The answer is B. angle 4.

An alternate interior angle is diagonally across one angle on the inside of the transversal. Opposite of 5 on the inside is angle 4.

Hope this helps !
6 0
3 years ago
Read 2 more answers
You are hired to work at quickie-mart and will be paid $9.50 per hour 1. Write an income function that describes the amount of m
zzz [600]

Answer:

f(x)=nx

or

f(x)=9.50x

Step-by-step explanation:

Let x be the amount of hours and n be the hourly rate (9.50).

f(x)=nx

or if you prefer to use 9.50 instead of n, the function would be:

f(x)=9.50x

3 0
3 years ago
Other questions:
  • Drag numbers to the table so it shows a proportional relationship between x and y.
    13·2 answers
  • I need some help solving two equations on my Algebra 1 homework
    9·1 answer
  • A two-way frequency table is shown below that displays the relationship between the region of the country in which people live a
    13·1 answer
  • What is the anwser to the multiplication problem, 11x11??
    8·3 answers
  • Which sequences are arithmetic? select three options​
    9·2 answers
  • 4/7b=22 help solve please
    8·1 answer
  • STOP!
    8·1 answer
  • Pls give me the answer.
    5·1 answer
  • Pls can probability be expressed as percentage ​
    6·1 answer
  • HELP MEEEE I BEG U SO MUCH
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!