Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 1

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.

You might also like