This site requires JavaScript, please enable it in your browser!
Greenfoot back

Report as inappropriate.

jgreen7
jgreen7 presents ...

2008/11/30

ShanCalc

Fully functional calculator
that is easily extended to
add new functionality.

2454 views / 280 in the last 7 days

Tags: codepoint-08-general utility

Your browser does not support the canvas tag.
A new version of this scenario was uploaded on Mon Dec 01 16:26:03 UTC 2008
A new version of this scenario was uploaded on Mon Dec 01 16:43:58 UTC 2008
A new version of this scenario was uploaded on Mon Dec 01 17:45:37 UTC 2008
A new version of this scenario was uploaded on Mon Dec 01 17:50:57 UTC 2008
A new version of this scenario was uploaded on Mon Dec 01 17:52:38 UTC 2008
A new version of this scenario was uploaded on Mon Dec 01 17:52:58 UTC 2008
jgreen7jgreen7

2008/12/1

This is now a working version for this. Apparently setImage is picky about being called in the gallery. I had to create a GreenfootImage of each of the PNG files and call setImage with that rather than a String of the filename.
I did 6+6*6-6-6*6+6 and it gave me -6, which is not correct. Maybe an order of operations problem?
A new version of this scenario was uploaded on Tue Dec 02 14:40:31 UTC 2008
jgreen7jgreen7

2008/12/2

Fixed the bug causing calculator to give wrong result for 6+6*6-6-6*6+6. Was actually a very simple fix that I had overlooked during testing. Thanks for looking.

See all comments

Want to leave a comment? You must first log in.

Who likes this?

No votes yet.