Answer to Question #54336 in Java | JSP | JSF for Toral

Question #54336
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.
1
Expert's answer
2015-09-01T01:30:07-0400
<!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!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
APPROVED BY CLIENTS