Basic java using do while loop and actually output data. Pls don't use Math.sqrt or anything like it. 1. Make a guess at

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

Basic java using do while loop and actually output data. Pls don't use Math.sqrt or anything like it. 1. Make a guess at

Post by answerhappygod »

Basic java using do while loop and actuallyoutput data. Pls don't use Math.sqrt or anythinglike it.
1. Make a guess at the answer (try squared / 2 as your initialguess).
2. Compute root = squared / guess .
3. Set guess = (guess + root) / 2 .
4. Start back at step 2 for as many iterations as necessary. Themore times steps 2 and 3 are repeated, the closer guess gets to thesquare root of squared.
Basic Java Using Do While Loop And Actually Output Data Pls Don T Use Math Sqrt Or Anything Like It 1 Make A Guess At 1
Basic Java Using Do While Loop And Actually Output Data Pls Don T Use Math Sqrt Or Anything Like It 1 Make A Guess At 1 (5.52 KiB) Viewed 14 times
Enter a double: 152415765.3 Square root of 152415765.300000 is 12345.68
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply