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
tankabanditka [31]
3 years ago
7

3.18: Pizza Pi Joe’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 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).
Computers and Technology
1 answer:
alina1380 [7]3 years ago
6 0

Answer:

#program in python.

#variables

slice_area=14.125

pi=3.14159

#read diameter

d=int(input("Enter diameter of pizza:"))

#area of pizza

area=pi*(d/2)*(d/2)

#number of slice

no_slice=int(area/slice_area)

#print slice

print("total silce are:",no_slice)

Explanation:

Declare and initialize a variable "slice_area" with 14.125 which is the area of a pizza slice.Initialize a variable "pi" with 3.14159.Then read the diameter of pizza.Find the area of pizza as "area=pi *d/2*d/2".Divide the total area with area of pizza slice.This will be the number of slice.

Output:

Enter diameter of pizza:20                                                                                                

total silce are: 22

You might be interested in
¿Ha existido en la historia de nuestra humanidad alguien que hubiera hecho posible el sueño del ser humano en obtener energía li
elixir [45]

This question is incomplete, here´s the complete question.  

Leer "Energias libres: La verdad sobre Nicola Tesla", de Pedro Pozas Terrados.

¿Ha existido en la historia de nuestra humanidad alguien que hubiera hecho posible el sueño del ser humano en obtener energía libre y gratuita? ¿Quién y con cuál invento?

Answer: Nikola Tesla tenía un plan para desarrollar la transmisión inalámbrica de energía libre y gratuita.

Explanation:

El físico serbo-norteamericano estaba convencido de que la energía radiante podía proveer energía eléctrica libre y gratuita, tomando la energía directamente de la naturaleza.

Logró construir una torre de alta tensión que demostraría su teoría, el proyecto denominado “Wardenclyffe”, pero la falta de presupuesto lo llevó a ver su torre destruida y perder su hipoteca.

Es posible que durante su vida, e incluso despues de su muerte, cuando el FBI ocultó como secreto de estado su trabajo, haya sido el temor por parte de quienes se benefician del sistema económico detrás de la industria energética lo que impidió que su invento permitiera a la humanidad contar con energía libre y gratuita.

5 0
3 years ago
Describe the 3 different types of authentication
Paha777 [63]

research on Google and it tells you the answer

7 0
2 years ago
Read 2 more answers
The nl2br() function can be used to convert new line entries in a text area into html ________________ tags.
SSSSS [86.1K]
<span>The nl2br() function can be used to convert new line entries in a text area into html br tags.</span>
8 0
3 years ago
What do developers do to support software products? explain to users which development process model was used to make the produc
cestrela7 [59]

Answer:

The developer develops the user manuals to support their products. And agile development process is being used to make the user manual. The technical write this, but they first talk to developers, designers, project managers, team leaders etc. and collect all the information from them. And they start making them since start of the project. They use jira, git and various version control to update this document. And all the functionalities must be mentioned accurately, as well as latest of them to ensure reliability and credibility. Devops is another automated technology being used extensively these days.

Explanation:

The answer is self explanatory.

8 0
3 years ago
You wrote a program to allow to guess a number chosen randomly.
Furkat [3]

Answer:

I think its A

Explanation:

5 0
3 years ago
Read 2 more answers
Other questions:
  • Which scientific law states that if a light source radiates isotropically, the light intensity falls off the further you get fro
    5·1 answer
  • Write a MATLAB code which asks a user for an integer number and computes the factorial of that number. Use while loop to create
    11·1 answer
  • What time does walmart deposit paychecks?
    5·1 answer
  • You have answered 4 of 18 questions.
    12·2 answers
  • Suppose we are comparing the implementations of insertion sort and merge sort on the same machine(You don’t need to know the alg
    13·1 answer
  • I can't find the errors! Could anyone help me please?!
    5·1 answer
  • You are creating a presentation and you have come to the last slide. You still have more information to add. What should you do?
    7·1 answer
  • Please help it would mean to world to me❤️ (WORD)
    13·1 answer
  • Which option is used to ensure the integrity and authenticity of a Word document but requires additional services to be availabl
    5·2 answers
  • c++ 4.17 LAB: Count characters Write a program whose input is a character and a string, and whose output indicates the number of
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!