Consider a sheet of paper. If you fold the paper in half, then the resulting doubled sheet

Question:

Consider a sheet of paper. If you fold the paper in half, then the resulting doubled sheet is twice as thick. Likewise, if you fold the sheet in half again, the thickness is doubled again (and becomes four times greater than that of the original sheet). Starting with a standard sheet of paper, how many folds do you think it would take before the paper's thickness equaled the distance between the earth and the sun (roughly 93 million miles)? Of course, this hypothetical question assumes that the original sheet is large enough and that you are strong enough to keep folding!

Create a Web page named fold.html that determines the number of folds required for a folded paper's thickness to reach from the earth to the sun. You should start with the initial thickness of a piece of paper (assume 0.002 inches) and then repeatedly double that value until it reaches 93 million miles (recall that a mile equals 5,280 feet and a foot equals 12 inches). Declare a counter variable to record the number of folds, and report the final count as your answer?

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Question Posted: