The ancient Babylonians had an algorithm for determining the square root of a number a. Start with
Question:
The ancient Babylonians had an algorithm for determining the square root of a number
a. Start with an initial guess of a / 2. Then find the average of your guess g and a / g. That’s your next guess. Repeat until two consecutive guesses are close enough. Write pseudocode for this algorithm.
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Answer rating: 50% (12 reviews)
Pseudocode step1 Set a as a integer to find the square root of Step 2 Set Cl...View the full answer
Answered By
Joash Mokaya
I am an experienced tutor with more than 7 years of experience. I have helped thousands of students pursue their academic goals. My primary objective as a tutor is to ensure that students have an easy time handling their academic tasks.
0.00
0 Reviews
10+ Question Solved
Related Book For
Question Posted:
Students also viewed these Computer science questions
-
(a) Start with an initial guess of x = 1 and y = 1 and apply two applications of the steepest ascent method to (x, y) from Prob. 14.4. (b) Construct a plot from the results of (a) showing the path of...
-
Use Exercise 60 to construct an algorithm for determining whether a directed graph contains a circuit. In exercise Show that if G is a directed graph and T is a spanning tree constructed using...
-
Write out in pseudocode an algorithm for solving a simultaneous system of linear congruences based on the construction in the proof of the Chinese remainder theorem.
-
Data Set 32 "Airport Data Speeds" in Appendix B includes Sprint data speeds (mbps). The accompanying TI-83 / 84 Plus display results from using those data to test the claim that they are from a...
-
Consumer Reports (January 2005) indicates that profit margins on extended warranties are much greater than on the purchase of most products.4 In this exercise we consider a major electronics retailer...
-
On January 1, Year 1, Beatie Company borrowed $350,000 cash from Central Bank by issuing a five-year, 5 percent note. The principal and interest are to be paid by making annual payments in the amount...
-
What measurement focuses (identifying which resources are being measured) and bases of accounting (identifying when the effects of transactions or events should be recognized) are used by...
-
In 2005, using $2.5 million in community property, Quinn creates a trust, life estate to his wife, Eve, and remainder to their children. Quinn dies in 2011 when the trust is worth $3.6 million, and...
-
Currently, a 10-year bond is trading at $1,000. You are convinced that the 10-year bond will rally massively over the next 4-days. You currently have $1M of cash. The 4-day repo rate is 2% (using...
-
The database Boston Housing.xlsx** contains information on 506 census tracts around the city of Boston. The data include housing-related information (e.g., average rooms per dwelling) as well as...
-
Type in and run the following program. Then modify it to show a different greeting and image. import java.net.URL; import javax.swing.ImageIcon; import javax.swing.JOptionPane; public class Test {...
-
Write a program that prompts the user for two integers and then prints The sum The difference The product The average The distance (absolute value of the difference) The maximum (the larger of...
-
Mike Magid Toyota is an automobile dealership. Magids annual report includes Note 1 Summary of Significant Accounting Policies as follows: Income Recognition Sales are recognized when cash payment is...
-
What did the NFL do to create much needed visibility for corporate sponsors during the football season when fans were not allowed at games due to the virus?
-
The Haines Corporation shows the following financial data for 20X1 and 20X2: Sales Cost of goods sold Selling & administrative expense Gross profit Operating profit Interest expense Income before...
-
From the trial balance of Hugo's Cleaners , ?prepare the following for August: 1 . ?Income Statement 2 . ?Statement of?owner's equity 3 . ?Balance sheet Trail Balance: Hugo's Cleaners Trial Balance...
-
Below is the change in stock for Dow Jones Index for the month of January through July. In the Monthly Change in Stock, create a formula that you can copy down that will calculate the monthly change...
-
-> 14.8 The following information has been extracted from the books of Nimmo Limited for the year to 31 December 20X9: Profit and Loss Accounts for year to 31 December 20X8 000 20X9 000 Profit before...
-
Use data from finance.yahoo.com to work out the financing proportions given in Figure 14.1 for a particular industrial company for some recent year. Figure 14.1 200.0 150.0 - 100.0 - 50.0 - 0.0 -50.0...
-
An environmentalist wants to determine if the median amount of potassium (mg/L) in rainwater in Lincoln County, Nebraska, is different from that in the rainwater in Clarendon County, South Carolina....
-
Given the following logic diagram for an accumulator, write down the Verilog module implementation of it. Assume a positive edgetriggered register and asynchronous Rst. In Adder 16 16 Out Load Clk...
-
Section 3.3 presents basic operation and possible implementations of multipliers. A basic unit of such implementations is a shift - and-add unit. Show a Verilog implementation for this unit. Show how...
-
Repeat Exercise B.22, but for an unsigned divider rather than a multiplier. Data from in Repeat Exercise B.22 Section 3.3 presents basic operation and possible implementations of multipliers. A basic...
-
(International Finance) Computing a Currency changes = (e1 - e0 )/ e0 where e0 = old currency value e1 = new currency value (a) If the dinar devalues against the U.S. dollar by 45%, the U.S. dollar...
-
2. Fill in the time line for the Sawing Department. Use the time line to help you compute the number of equivalent units and the cost per equivalent unit in the Sawing Department for September Show...
-
question 6 Timely Inc. produces luxury bags. The budgeted sales and production for the next three months are as follows july. august september Sales, in units 1,115. 1229. 1302 Production. in units...
Study smarter with the SolutionInn App