This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2011-07-29 11:47:32

Dawgles
Scratcher
Registered: 2011-07-29
Posts: 100+

Scratch calculator!

My first project! It asks you for two numbers and adds them together.

http://scratch.mit.edu/projects/Dawgles/1950363

Offline

 

#2 2011-07-29 13:01:22

Death_Wish
Scratcher
Registered: 2011-07-26
Posts: 1000+

Re: Scratch calculator!

A way to make it divide, subtract and multiply is to copy the script and replace the ()+() with ()*(), ()/() and ()-(). Then you can make it say something like
"Tell me a number."
"Now another"
"Would you like to Multiply, Divide, Subtract or Add?"
Then if they say Divide, it does the first number variable / by the second, etc.
If you don't understand much see http://scratch.mit.edu/projects/Death_Wish/1946019
It's a calculator I made  tongue
And to make it have Square root you have to use the sqrt thing.


With a straight flush.
http://4.bp.blogspot.com/-FlUhnzmIROE/TgtpjdJl4tI/AAAAAAAABCM/W19pvFTZFaU/s1600/save_the_world.png http://blocsonic.com/images/special/rip-stevejobs.jpg

Offline

 

Board footer