One acre of land is equivalent to 43,560 square feet. Write a program called land_calculation.js that calculates the number of acres in the a tract of land based on the total square feet in a tract of land. Use a literal value of 348,480 for the total square feet.
<script> squarefeets = prompt("Please input a total square feet in a tract of land"); document.writeln("The number of acres in the a tract of land based on the total square feet in a tract of land " + Math.ceil(squarefeets/43560) + " acres") alert("The number of acres in the a tract of land based on the total square feet in a tract of land " + Math.ceil(squarefeets/43560) + " acres") </script>
Comments
Leave a comment