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
Can anybody help plzz?? 65 points
Yakvenalex [24]

Answer:

\frac{dy}{dx} =\frac{-8}{x^2} +2

\frac{d^2y}{dx^2} =\frac{16}{x^3}

Stationary Points: See below.

General Formulas and Concepts:

<u>Pre-Algebra</u>

  • Equality Properties

<u>Calculus</u>

Derivative Notation dy/dx

Derivative of a Constant equals 0.

Stationary Points are where the derivative is equal to 0.

  • 1st Derivative Test - Tells us if the function f(x) has relative max or mins. Critical Numbers occur when f'(x) = 0 or f'(x) = undef
  • 2nd Derivative Test - Tells us the function f(x)'s concavity behavior. Possible Points of Inflection/Points of Inflection occur when f"(x) = 0 or f"(x) = undef

Basic Power Rule:

  • f(x) = cxⁿ
  • f’(x) = c·nxⁿ⁻¹

Quotient Rule: \frac{d}{dx} [\frac{f(x)}{g(x)} ]=\frac{g(x)f'(x)-g'(x)f(x)}{g^2(x)}

Step-by-step explanation:

<u>Step 1: Define</u>

f(x)=\frac{8}{x} +2x

<u>Step 2: Find 1st Derivative (dy/dx)</u>

  1. Quotient Rule [Basic Power]:                    f'(x)=\frac{0(x)-1(8)}{x^2} +2x
  2. Simplify:                                                      f'(x)=\frac{-8}{x^2} +2x
  3. Basic Power Rule:                                     f'(x)=\frac{-8}{x^2} +1 \cdot 2x^{1-1}
  4. Simplify:                                                     f'(x)=\frac{-8}{x^2} +2

<u>Step 3: 1st Derivative Test</u>

  1. Set 1st Derivative equal to 0:                    0=\frac{-8}{x^2} +2
  2. Subtract 2 on both sides:                         -2=\frac{-8}{x^2}
  3. Multiply x² on both sides:                         -2x^2=-8
  4. Divide -2 on both sides:                           x^2=4
  5. Square root both sides:                            x= \pm 2

Our Critical Points (stationary points for rel max/min) are -2 and 2.

<u>Step 4: Find 2nd Derivative (d²y/dx²)</u>

  1. Define:                                                      f'(x)=\frac{-8}{x^2} +2
  2. Quotient Rule [Basic Power]:                  f''(x)=\frac{0(x^2)-2x(-8)}{(x^2)^2} +2
  3. Simplify:                                                    f''(x)=\frac{16}{x^3} +2
  4. Basic Power Rule:                                    f''(x)=\frac{16}{x^3}

<u>Step 5: 2nd Derivative Test</u>

  1. Set 2nd Derivative equal to 0:                    0=\frac{16}{x^3}
  2. Solve for <em>x</em>:                                                    x = 0

Our Possible Point of Inflection (stationary points for concavity) is 0.

<u>Step 6: Find coordinates</u>

<em>Plug in the C.N and P.P.I into f(x) to find coordinate points.</em>

x = -2

  1. Substitute:                    f(-2)=\frac{8}{-2} +2(-2)
  2. Divide/Multiply:            f(-2)=-4-4
  3. Subtract:                       f(-2)=-8

x = 2

  1. Substitute:                    f(2)=\frac{8}{2} +2(2)
  2. Divide/Multiply:            f(2)=4 +4
  3. Add:                              f(2)=8

x = 0

  1. Substitute:                    f(0)=\frac{8}{0} +2(0)
  2. Evaluate:                      f(0)=\text{unde} \text{fined}

<u>Step 7: Identify Behavior</u>

<em>See Attachment.</em>

Point (-2, -8) is a relative max because f'(x) changes signs from + to -.

Point (2, 8) is a relative min because f'(x) changes signs from - to +.

When x = 0, there is a concavity change because f"(x) changes signs from - to +.

3 0
3 years ago
What is the x-value of the solution to the system of equations?
ValentinkaMS [17]

Answer:

The solution to the system of equations is:

x=4,\:y=-3

Step-by-step explanation:

Given the system of equations

5x + 4y =8

2x- 3y = 17

solving the system of equations

\begin{bmatrix}5x+4y=8\\ 2x-3y=17\end{bmatrix}

\mathrm{Multiply\:}5x+4y=8\mathrm{\:by\:}2\:\mathrm{:}\:\quad \:10x+8y=16

\mathrm{Multiply\:}2x-3y=17\mathrm{\:by\:}5\:\mathrm{:}\:\quad \:10x-15y=85

\begin{bmatrix}10x+8y=16\\ 10x-15y=85\end{bmatrix}

10x-15y=85

-

\underline{10x+8y=16}

-23y=69

\begin{bmatrix}10x+8y=16\\ -23y=69\end{bmatrix}

solve for y

-23y=69

Divide both sides by -23

\frac{-23y}{-23}=\frac{69}{-23}

y=-3

\mathrm{For\:}10x+8y=16\mathrm{\:plug\:in\:}y=-3

10x+8\left(-3\right)=16

10x-24=16

10x=40

Divide both sides by 10

\frac{10x}{10}=\frac{40}{10}

x=4

Thus, the solution to the system of equations is:

x=4,\:y=-3

7 0
2 years ago
Pls help (50 points)
svetlana [45]

Answer:

4.5 inches

Step-by-step explanation:

We are given the formula:

V = \pi r^{2}h

Plug in the the radius (3) and volume (127.23):

127.23 = 3.14(3)^{2} h

Square the 3 :

127.23 = 3.14(9)h

Multiply the pi & volume:

127.23 = 28.26h

Divide both sides by 28.26:

127.23 ÷ 28.26 = 28.26h ÷ 28.26

h = 4.5021231...

I hope this helps!

6 0
3 years ago
Read 2 more answers
This is kinda confusing can someone help explain!!
AURORKA [14]

Answer: all i can say is this for an edu guess

2 6 and 4 would be 40 or 30

3 5 and 7 would be 110 or 120

8 would be 20 or 10

also this was the first answer

7 0
2 years ago
Read 2 more answers
You wash dishes for a chemistry laboratory to make extra money for laundry. You earn 12 dollars/ hour, and each shift lasts 75 m
melomori [17]
It would pay with 3 loads
8 0
3 years ago
Read 2 more answers
Other questions:
  • The thickness t in millimeters of a folded sheet of paper after it is folded n times is given by the equation t = (0.05) * 2n.
    13·1 answer
  • Simplify the following expression by combining like term show your work. 4x-6x
    15·1 answer
  • What is 99÷99+7÷4<br><br><img src="https://tex.z-dn.net/?f=2" id="TexFormula1" title="2" alt="2" align="absmiddle" class="latex-
    5·1 answer
  • In how many ways can a set of two positive integers less than 100 be chosen?
    13·1 answer
  • An industrial center produces refrigerator motors, but it has a 0.03 defective rate. What is the probability that the machine pr
    7·1 answer
  • Kate’s 85 on her English test was 37 points less than twice the grade on her Geometry test.
    5·1 answer
  • In quadrilateral PQRS, PQ= 4x-15, QR=4x+20, RS=3x+5 and SP=6x-20. What vale of x verifies that quadrilateral PQRS is a parallelo
    15·1 answer
  • What is the common difference, d, of the sequence? -94, -74, -56, -20, ...<br><br><br> pls help me!
    9·1 answer
  • Which expression is equivalent to ? A. B. C. D.
    14·2 answers
  • Would you use the median or mean to describe the center of each data set? Explain your reasoning. Heights of 50 basketball playe
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!