943,982 Members | Top Members by Rank

Ad:
  • Java Discussion Thread
  • Unsolved
  • Views: 4981
  • Java RSS
You are currently viewing page 1 of this multi-page discussion thread
Jul 6th, 2006
0

calculator

Expand Post »
Hi there ,
I need a calculator that is flexible enough to perform
+,-,/,%,^and *.
can you help plz
Similar Threads
Reputation Points: 10
Solved Threads: 0
Light Poster
Embeza is offline Offline
48 posts
since Jun 2006
Jul 6th, 2006
0

Re: calculator

If you are suppossed to be writing one, then write one, and if you have a specific problem, check back with us. If you simply want to find one to use, check with Google, there are more than enough out there.
Moderator
Reputation Points: 1471
Solved Threads: 490
Industrious Poster
masijade is offline Offline
4,043 posts
since Feb 2006
Jul 6th, 2006
0

Re: calculator

Quote originally posted by Embeza ...
Hi there ,
I need a calculator that is flexible enough to perform
+,-,/,%,^and *.
can you help plz
So basically you want a calculator in java which emulates the one in windows.

There should be lots of examples out there, even some which handles more complex crap like RPN notation. I'm feeling bored (holidays) I might write a RPN calculator with a nice gui for fun.
Featured Poster
Reputation Points: 1536
Solved Threads: 431
Posting Expert
iamthwee is offline Offline
5,865 posts
since Aug 2005
Jul 15th, 2006
0

Re: calculator

tat easy.. u haf each button add a actionlistener..
and inside the action listener perform the required statements lor.
i did that in my school before
Reputation Points: 10
Solved Threads: 0
Newbie Poster
N[e]tt[e] is offline Offline
18 posts
since Feb 2005
Jul 16th, 2006
0

Re: calculator

For u it might be.There is surely a difference between you and me but the aim of this forum is to exchange ideas.Not to overact and undermine others.
Any way the calculator will be using numbers as input from the buttons as well as from a text file.
That is to say the file will have random real numbers arranged randomly.You have to input thos numbers from the file.
For example if the file has "3,7.9,-9.3,100" then the user has to choose which numbers to take as operands.Its a kind of assigning the text into a string variable, splitting it into parts and manipulating with the elements of the array of the strings.

Quote originally posted by N[e]tt[e] ...
tat easy.. u haf each button add a actionlistener..
and inside the action listener perform the required statements lor.
i did that in my school before
Reputation Points: 10
Solved Threads: 0
Light Poster
Embeza is offline Offline
48 posts
since Jun 2006
Jul 17th, 2006
0

Re: calculator

The idea is to help others, not to enlist them to do your homework for you.
You showed no interest at all in doing anything of your own, just sitting back and waiting for a complete solution to be handed to you on a golden platter.

That's not going to fly, especially since you're not paying us consultancy fees (at $150 an hour per person for a minimum of 80 hours per person).
Team Colleague
Reputation Points: 1658
Solved Threads: 331
duckman
jwenting is offline Offline
7,719 posts
since Nov 2004
Jul 19th, 2006
0

Re: calculator

Featured Poster
Reputation Points: 1536
Solved Threads: 431
Posting Expert
iamthwee is offline Offline
5,865 posts
since Aug 2005
Jul 19th, 2006
0

Re: calculator

Thank you for your solutions
But I dont know java very well.
What I know is VB 6.0 and VB.NET
and also as to the content of your hard work you have developed a converter(to number from string).That is good but i need inputs to be selected randomly from the file.
The only thing I should ask everybody is how to select interest operands i.e any operands of interest from the text file.
Thank you.
Embeza
Reputation Points: 10
Solved Threads: 0
Light Poster
Embeza is offline Offline
48 posts
since Jun 2006
Jul 19th, 2006
0

Re: calculator

Quote ...
and also as to the content of your hard work you have developed a converter(to number from string).That is good but i need inputs to be selected randomly from the file.
The only thing I should ask everybody is how to select interest operands i.e any operands of interest from the text file.

Hullo, can you please explain this in greated detail with an example.

Reading from a file is simple when you know how. But what does the file input look like?
Featured Poster
Reputation Points: 1536
Solved Threads: 431
Posting Expert
iamthwee is offline Offline
5,865 posts
since Aug 2005
Jul 23rd, 2006
0

Re: calculator

So you helped the kid by doing his homework for him, now he can claim a decent grade for doing no work at all.
What does that do for the profession, except causing even more unqualified idiots to enter the marketplace?
Team Colleague
Reputation Points: 1658
Solved Threads: 331
duckman
jwenting is offline Offline
7,719 posts
since Nov 2004

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Java Forum Timeline: installing sqlexplorer in eclipse
Next Thread in Java Forum Timeline: Data Models and Pattern Matching





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC