Computer Science, asked by prachitasoni, 9 months ago

in scratch program how do we calculate the area of a square with two sprite commumicating I need a code​

Answers

Answered by jksangani147
2

Answer:

I love how it's basic yet it works so well! I'm also working on a math project but I'm thinking about not doing it anymore because it's not really my style. Any tips?

if you want to do my method, then you would do this, but if you don't understand then just put all the scripts in your backpack and move them to your project, please credit me because i was ill when i made this:

First of all, you need three variables:

first

number

second

number

answer

this is meant to be orange, not the default blue from sensing.

WARNING: do not use the blue variable from sensing, make your own one from the data section. so it would be orange instead of blue.

so how this will work is you would have one sprite, that sprite will ask you a question. the sprites first question would be asking you if you want to do division, multiplication, adding, or subtracting.

ask

Do you want to do multiplication, division, adding or subtracting?

and

wait

now the next step requires a lot of code, so i'm going to word it. if you still don't understand you can take the script to your backpack with a comment attached to it saying ‘for violet_raven’. And use it for your project, but i would like credit. Because i was VERY ill when i made this project. so you need to program it so that if your answer is ‘division’ it will broadcast ‘division’ if it's multiplication, it would broadcast ‘multiplication’ etc.

Similar questions