/    Sign up×
Community /Pin to ProfileBookmark

somebody please please help me!

Hi everyone!
im a complete java beginner and stuck trying to write some java programmes.
Please can anybody help me?
the questions are…..

1)’The Heron method is a method for computing square roots that was known to the ancient Greeks.If x is a guess for the value of the squareroot of a , then the average of x and a/x ia a better guess.
Implement a class RoorApproximator that starts with an initial guess of 1 and whose nextGuess method produces a sequence of increasingly better guesses.Supply a method hasmoreGuesses that returns ‘false’ if two successive guesses are sufficiently close to eaach other. Then test your class like this:
Rootapproximator r = new RootApproximator(n);
while (r.hasMoreGuesses())
System.out.println(r.nextGuess()); ‘

2) Write a java programme that computes e^x using the power series – e^x = sum from 0 to infinity of (X^n / n!).

I reckon anyone who knows java will understand my problems as a complete beginner lol. So if anyone could help me with this programme it would be much appreciated….
Thanks everyone
x

to post a comment
JavaScript

4 Comments(s)

Copy linkTweet thisAlerts:
@khalidali63Mar 19.2003 — Post your question at this forum

http://forum.java.sun.com/

This forum here is for JavaScript which is different.

Cheers

Khalid
Copy linkTweet thisAlerts:
@beekie_gauthorMar 19.2003 — cheers for that mate. I did that but they're all insulting me rather than helping lol. i aint lazy lol, i just aint got a clue! javas not an easy thing to pick up. thanks tho x
Copy linkTweet thisAlerts:
@bluereinoDec 18.2020 — @beekie_g#31080 I know this is a very very old post, I'm stuck on this same question as you were, what 17 years ago. I also have no clue what to do. Were you ever able to figure it out if you remember? Thank you!
Copy linkTweet thisAlerts:
@danielboraDec 18.2020 — @bluereino#1626011

how did you **find** this question?:
×

Success!

Help @beekie_g spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.11,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...