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

#1 2010-09-04 15:50:09

majormax
Scratcher
Registered: 2008-04-06
Posts: 1000+

BYOB Block

http://www.majorrom.com/personalfilehosting/averageblock.png
How would you make it?

Last edited by majormax (2010-09-04 15:50:29)

Offline

 

#2 2010-09-07 07:26:21

majormax
Scratcher
Registered: 2008-04-06
Posts: 1000+

Offline

 

#3 2010-09-07 10:21:33

MathWizz
Scratcher
Registered: 2009-08-31
Posts: 1000+

Re: BYOB Block

Lets say your input list is "numbers". Make a variable called "sum" then set sum to 0. Repeat the length of numbers and change sum by each item. Then report sum divided by the length of numbers.  smile


http://block.site90.net/scratch.mit/text.php?size=30&text=%20A%20signature!&color=333333

Offline

 

#4 2010-09-07 10:33:43

majormax
Scratcher
Registered: 2008-04-06
Posts: 1000+

Re: BYOB Block

Thanks.

Offline

 

#5 2010-09-07 10:35:19

majormax
Scratcher
Registered: 2008-04-06
Posts: 1000+

Re: BYOB Block

Wait. It doesn't work.

Offline

 

#6 2010-09-07 16:11:16

bbbeb
Scratcher
Registered: 2009-06-11
Posts: 1000+

Re: BYOB Block

http://img837.imageshack.us/img837/7476/averageof.gif

Guess what it is for.

Last edited by bbbeb (2010-09-07 16:11:38)


Back in my day.... there were no laws that censored the internet... now, there are.... nah.

Offline

 

#7 2010-09-07 16:25:18

majormax
Scratcher
Registered: 2008-04-06
Posts: 1000+

Re: BYOB Block

That works. Thanks.

Offline

 

#8 2010-09-07 17:52:24

bbbeb
Scratcher
Registered: 2009-06-11
Posts: 1000+

Re: BYOB Block

No Problem.


Back in my day.... there were no laws that censored the internet... now, there are.... nah.

Offline

 

#9 2010-09-08 03:10:48

johnnydean1
Scratcher
Registered: 2010-02-12
Posts: 1000+

Re: BYOB Block

bbbeb wrote:

http://img837.imageshack.us/img837/7476/averageof.gif

Guess what it is for.

Can you use
change report by ( item (add) of (numbers) )


You can now reach me on Twitter @johnnydean1_

Offline

 

#10 2010-09-08 18:19:02

bbbeb
Scratcher
Registered: 2009-06-11
Posts: 1000+

Re: BYOB Block

No. Not for that.  big_smile

Edit: Oh my god... you're right!  big_smile  you can do that...

Last edited by bbbeb (2010-09-08 19:05:51)


Back in my day.... there were no laws that censored the internet... now, there are.... nah.

Offline

 

#11 2010-09-08 18:55:32

majormax
Scratcher
Registered: 2008-04-06
Posts: 1000+

Re: BYOB Block

What then?

Offline

 

#12 2010-09-08 19:06:01

bbbeb
Scratcher
Registered: 2009-06-11
Posts: 1000+

Re: BYOB Block

^^ up


Back in my day.... there were no laws that censored the internet... now, there are.... nah.

Offline

 

#13 2010-09-08 19:28:27

majormax
Scratcher
Registered: 2008-04-06
Posts: 1000+

Re: BYOB Block

I don't get it.  hmm

Offline

 

#14 2010-09-08 23:24:51

bbbeb
Scratcher
Registered: 2009-06-11
Posts: 1000+

Re: BYOB Block

Thats the block spec (for BYOB). Anything else?


Back in my day.... there were no laws that censored the internet... now, there are.... nah.

Offline

 

Board footer