This document provides an algorithm to calculate the price of a pizza per square inch given the radius and total price of the pizza. The algorithm first gets the radius and price as input. It then uses the formula for the area of a circle to calculate the total area in square inches. Finally, it divides the total price by the area to find the price per square inch and displays the result.
This document provides an algorithm to calculate the price of a pizza per square inch given the radius and total price of the pizza. The algorithm first gets the radius and price as input. It then uses the formula for the area of a circle to calculate the total area in square inches. Finally, it divides the total price by the area to find the price per square inch and displays the result.
This document provides an algorithm to calculate the price of a pizza per square inch given the radius and total price of the pizza. The algorithm first gets the radius and price as input. It then uses the formula for the area of a circle to calculate the total area in square inches. Finally, it divides the total price by the area to find the price per square inch and displays the result.
Given the radius, in inches, and price of a pizza, design an algorithm to find and display the price of the
pizza per square inch. (20 points)
1. Get the value of radius in inches and price of pizza.
2. Compute area per square inch using the formula below. 3. Area per square inch = 3.14 multiply by 2radius 4. Calculate the price of pizza per square inch using the formula below. 5. Price of pizza per square inch equal to price of pizza divided by area per square inch 6. Display price of pizza per square inch.