
Patrick B. answered 03/11/19
Math and computer tutor/teacher
<html>
<head>
</head>
<body>
<script>
diameter = prompt(' Please input the diameter')
radius = diameter/2
price = prompt(' Please input the price')
area = 22/7*radius*radius
psi = price/area
alert( ' price per square inch is ' + psi)
</script>
</body>
</html>