mallenascutia mallenascutia
  • 09-09-2020
  • Computers and Technology
contestada

design an algorithm to find and display the price of the pizza per square inch

Respuesta :

MrRoyal
MrRoyal MrRoyal
  • 14-09-2020

Answer:

The algorithm is as follows

  1. Start
  2. Read the price of unit Pizza, P
  3. Read the Radius of Pizza, R
  4. Area = 3.14 * R * R
  5. Price Per Area = P/Area
  6. Print Price Per Area
  7. Stop

Explanation:

The algorithm is self explanatory.

However, take note of the following

  1. Price Per Square inch is calculated by dividing the price (P) of the pizza by its area
  2. A pizza has a circular surface, so the area will be calculated using Area = πR²
  3. So, the formula to calculate the required output is P/Area as shown in the algorithm above.
Answer Link

Otras preguntas

Question 1 of 7 The cone shown has a diameter of 12 centimeters and a slant height of 8 centimeters. Which choice is closest to the total surface area? Use 3.14
Describe the patterns below in words: a) 1, 4, 9, 16, 25... b) 1, 2, 4, 7, 11...
What was one reason for Genghis Khan’s success as a military leader? A. He ruthlessly destroyed all Mongol clans except his own. B. He organized the Mongolian a
Please help on this one? :)
Algebra help with asap
i need help with these questions
The RNA segments spliced to one another during RNA processing are _____.
Why do conspiracy theories exist?
Energy flows through ecosystems and each step of this energy transfer is known as
20 PTS PLEASE!!!!!!!!!!!! You final write-up should be at least one page single spaced or two pages double spaced with 12-point font and 1-inch margins. It must