Design an algorithm to find and display the price of the pizza per square inch
1 answer:
Answer:
The algorithm is as follows
- Start
- Read the price of unit Pizza, P
- Read the Radius of Pizza, R
- Area = 3.14 * R * R
- Price Per Area = P/Area
- Print Price Per Area
- Stop
Explanation:
The algorithm is self explanatory.
However, take note of the following
- Price Per Square inch is calculated by dividing the price (P) of the pizza by its area
- A pizza has a circular surface, so the area will be calculated using Area = πR²
- So, the formula to calculate the required output is P/Area as shown in the algorithm above.
You might be interested in
Answer:
B. It causes great damage to the ozone layer
Explanation:
If the weight of displaced liquid and the weight of an object are the same, the object will: float
This is not a computer and technology question but ill still answer it!! They are not
Answer:
<h3>B. It can be used-generated and shared by many people.</h3>