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% (10 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...
-
You can break a strong wine bottle by pounding a cork into it with your fist, but the cork must press directly against the liquid filling the bottlethere can be no air between the cork and liquid....
-
A new startup company intends to compete with Nielsen Media Research by providing data with a larger margin of error for the same price. Decide whether the statement makes sense (or is clearly true)...
-
Riff CD Company has had 4 years of retained earnings. Due to this success, the market price of its 400,000 shares of $3 par value common stock has increased from $12 per share to $51. During this...
-
PROMOTIONAL MIX/COMMUNICATION TOOLS - 18 marks total a.) Name and define three (3) distinct promotional mix(communication tools) elements. For example, "public relations" is one of the elements you...
-
You work in the human resources department of your company helping new employees fill out the necessary paperwork to get their first paycheck. There are a number of decisions that employees must make...
-
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...
-
The parameter values for a certain armature-controlled motor are KT = Kb = 0.05 N.m/A c = 0 Ra = 0.8 La = 3 x l0-3 H I = 8 x l0-5 kg.m2 Where I include the inertia of the armature and that of the...
-
iii. When a stone is thrown directly upwards with initial velocity of 30.0m/s, what will be the maximum height it will reach and when will it be? Acceleration due to gravity is 10m/s. Show your work...
-
1. The height of Rekha is 148.6 cm and she is taller than her sister by 2.98 cm. What is the height of Rekha's sister? 2. A car covers a distance of 12.1 km in 1.1 liters of petrol. How much distance...
-
What type of departmentalization is most likely to be used in organizations that work around the clock? A. Functional departmentalization B. Shift departmentalization C. Customer...
-
What concept most closely relates to the ability of organizations to express themselves? Shareholder primacy Corporate personhood Affordable care Business judgement rule
-
Name five things or systems that have a periodic motion other than the pendulum and explain why they are periodic. Briefly discuss what the period, wavelength and frequency of the item would be or...
-
What restrictions must be placed on x and y for the following matrices to be invertible? (a) (b) (c)
-
Refer to the Conservation Ecology (Dec. 2003) study of the causes of forest fragmentation, presented in Exercise 2.166 (p. 97). Recall that the researchers used advanced high-resolution satellite...
-
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...
-
Donor places $500,000 worth of closely held stock into an inter vivos trust with a qualifying income interest to Spouse for life and a remainder to the children of Donor's first marriage. Assume...
-
Oscar severely injured his spine in a motorcycle accident which resulted in him becoming a paraplegic. As a result he consulted a lawyer and was successful in obtaining a compensation payout of...
-
Flounder Auto Repairs is a service firm that uses a job costing system. Direct labor consists of mechanics' pay. Direct materials consist of auto parts. Manufacturing overhead costs include items...
Study smarter with the SolutionInn App