"The most exciting phrase to hear in science, the one that heralds new discoveries, is not 'Eureka!', but 'That's funny...' "
- Isaac Asimov
Quite right. When you have a calculator working at the command line, you can add a GUI to it. Somebody else has a similar problem, which you would have found by searching the Ranch.Naishadh Parmar wrote: . . . start low -- develop a calculator which can be used in the command line "cmd". Simple java code that takes input from the cmd.
I did the same thing!!!
Naishadh Parmar wrote:First of all you need to learn Swing. Beacuse only that can be used to make a 'graphical' calculator.
"The most exciting phrase to hear in science, the one that heralds new discoveries, is not 'Eureka!', but 'That's funny...' "
- Isaac Asimov
Alix Ollivier wrote:...and it calculates...
There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
Alix Ollivier wrote:I was thinking of making it so that each time a button is pressed, it adds to a string, which is displayed in the answer part of the calculator.
"Leadership is nature's way of removing morons from the productive flow" - Dogbert
Articles by Winston can be found here
Ulf Dittmer wrote:Ah, that brings back memories.
"Leadership is nature's way of removing morons from the productive flow" - Dogbert
Articles by Winston can be found here
There is a LOT of hand waving here.
"The most exciting phrase to hear in science, the one that heralds new discoveries, is not 'Eureka!', but 'That's funny...' "
- Isaac Asimov
Alix Ollivier wrote:When I wrote that it would calculate, I meant automatically. I will start off with a basic calculator, with only simple problems like addition to division. If I do problems like that, then there is no hand waving. Say I have a calculator written. I click a button, and the symbol it has is included to the "answer" string. When I finally press the "equals" sign, it converts the "answer" string into an int, which is then calculated. By calculated, I mean that if you make an int with the value of 1+2+3+4, it will make the value of the int 10.
"Leadership is nature's way of removing morons from the productive flow" - Dogbert
Articles by Winston can be found here
Campbell Ritchie wrote:What do you mean almost? Surely you can write anything in postfix? I spend quite a lot of time using FORTH, which naturally uses postfix notation.
"Leadership is nature's way of removing morons from the productive flow" - Dogbert
Articles by Winston can be found here