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.
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<script src="test.js"></script>
</head>
<body>
<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>
</body>
</html>
Need a fast expert's response?
Submit order
and get a quick answer at the best price
for any assignment or question with DETAILED EXPLANATIONS!
Learn more about our help with Assignments:
JavaJSPJSF