Question: Develop an algorithm, in the form of a Raptor flowchart, to calculate the square root of a positive number using the Square Root algorithm described

Develop an algorithm, in the form of a Raptor flowchart, to calculate the square root of a positive number using the "Square Root" algorithm described by the pseudocode given below. Note that this algorithm is described at length in Chapter 7- Problem Solving and Algorithm of the textbook. The pseudocode given below uses a decision to calculate the absolute value.
Start
Read in square
Set root to square/4
Set epsilon to 1
While (epsilon >0.001) do 6,7 and 8
Set root to (root +(square ?? root)?2.0
Set diff to square - root * root
If diff >0
Set epsilon to (square - root * root) Else
Set epsilon to -(square - root * root)
Write out square and root
End
The following are four examples of the expected input/output behavior of the algorithm:
\table[[square =4,root: 2.0
 Develop an algorithm, in the form of a Raptor flowchart, to

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!