Calculate the square root

Suppose that your program needs to calculate the square root of a number. 

Design the algorithm and write the code

Design the algorithm describing that process. 

Write the code to calculate the square root and insert it into your program code. 

Compile and run your program

Then you could compile, and run your program.

Your program should correctly calculate the square root.

(For reasons that will become apparent later, I will refer to the code that you inserted into your program as in-line code.)