Dude, 3+5-3*9 does not equal 108. Also, I will probably not bother adding memory, you could just do step by step. Use your brain. The actual answer is -19. Just think of PEDMAS. P for problems in Parenthis. There are none of those. E for Exponents. None of those. D for Divide. None of those. M for Multiply. We got one for 3*9=27. So the problem could now be 3+5-27. Now A for Add. 3+5=8 so now it would be considered 8-27. And last but not least S for Subtract. 8-27 is -19. Though if you just do the problem in order you would get 45. Of course I used the order of operation.
You should allow the calculator to have stacks and memory, so that way, you can say 3+5-3*9 all at once and get 108. As soon as you have stacks, you can type in any amounts numbers not considering scratches very type int for all scratch variables.
thanks, I will probably skip most of the mathimatical functions just so people who are not good with mathimatics will not ask "What is cosine? or What is Sine?".So ya thanks,
Download "Calculator"(19 sprites and 23 scripts) and open it in Scratch
Project Notes
This is a calculator that I made. You can add, subtract, multiply, divide, round to the nearest non-feaction, do the square rooot of a number and change a number from positive to negative and negative to positive. I hope you like it!
Comments
You need to be logged in to post comments
Add a Comment
Dude, 3+5-3*9 does not equal 108. Also, I will probably not bother adding memory, you could just do step by step. Use your brain. The actual answer is -19. Just think of PEDMAS. P for problems in Parenthis. There are none of those. E for Exponents. None of those. D for Divide. None of those. M for Multiply. We got one for 3*9=27. So the problem could now be 3+5-27. Now A for Add. 3+5=8 so now it would be considered 8-27. And last but not least S for Subtract. 8-27 is -19. Though if you just do the problem in order you would get 45. Of course I used the order of operation.
(view all replies)Comment Reply
You should allow the calculator to have stacks and memory, so that way, you can say 3+5-3*9 all at once and get 108. As soon as you have stacks, you can type in any amounts numbers not considering scratches very type int for all scratch variables.
(view all replies)Comment Reply
That is my first name.
(view all replies)Comment Reply
this is cool, but y does it say chris's calculater??? r u chris??? is that y?
(view all replies)Comment Reply
What do you mean it gives the real answers too? A calculator does not lie.
(view all replies)Comment Reply
sweet....it gives the real answers too!!!This rocks!!
(view all replies)Comment Reply
thanks, I will probably skip most of the mathimatical functions just so people who are not good with mathimatics will not ask "What is cosine? or What is Sine?".So ya thanks,
(view all replies)Comment Reply
that amazing
(view all replies)Comment Reply
how didi it to get all the questions right?
(view all replies)Comment Reply
Cool!
(view all replies)Comment Reply
nice
(view all replies)Comment Reply