Skip to main content

Section 6.14 Write Code Questions Orig

Activity 6.14.1.

The code below is supposed to print an estimate of the square root of a number (target). You are given an initial guess of 2. However, the indention is wrong on 4 lines. Fix these errors to find the estimate.

Activity 6.14.2.

Create code to print an estimate of the square root of a number (target). You are given an initial guess of 2.

Activity 6.14.3.

Rewrite the following code to use a while loop instead of a for loop to calculate the value of ten factorial.

Activity 6.14.4.

Using the blocks below, create code to calculate the value of ten factorial.
You have attempted of activities on this page.