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

#1 2010-05-29 10:20:09

wmays
Scratcher
Registered: 2008-05-10
Posts: 500+

BYOB 2.99 Circumference Block and Area of a circle Block

Today I will show you how to make a calculate circumference reporter and a calculate area of a circle reporter. So let's get started.
1) Circumference Reporter
Here's the script:
http://i47.tinypic.com/zje9gw.gif

and then at the bottom in the text feild next to report put in <{  a  }>

2) Area of a circle reporter
Here Is the script:
http://i48.tinypic.com/11kh085.gif

and then at the bottom in the text feild next to report put in <{  a  }>
You're Done!


http://i42.tinypic.com/2z5vcz9.gif
http://phpscripthost.comoj.com/imagescripts/ipimg.php

Offline

 

#2 2010-05-29 10:23:53

Lucario621
Community Moderator
Registered: 2007-10-03
Posts: 1000+

Re: BYOB 2.99 Circumference Block and Area of a circle Block

Cool blocks!


http://i.imgur.com/WBkM2QQ.png

Offline

 

#3 2010-05-29 10:24:50

coolstuff
Community Moderator
Registered: 2008-03-06
Posts: 1000+

Re: BYOB 2.99 Circumference Block and Area of a circle Block

I'm not sure if this belongs in Miscellaneous - maybe it should go to Advanced Topics?
I'll move it there  smile

Offline

 

#4 2010-05-29 15:16:02

bharvey
Scratcher
Registered: 2008-08-10
Posts: 1000+

Re: BYOB 2.99 Circumference Block and Area of a circle Block

wmays wrote:

and then at the bottom in the text feild next to report put in  <a>

I'm glad you're enjoying BYOB!

You may not realize that what you put in the report slot doesn't have to be just a variable.  So you could use the "<d> * <3.141592654>" directly as the thing to report, and then you wouldn't need the variable <a>.

Similarly, you can report ( ( <d> * <d>) / <4>) * <3.14...>
without any assignments to variables.

That report slot at the bottom of the Block Editor looks small, but it'll grow as needed to contain as big an expression as you want!

Last edited by bharvey (2010-05-29 15:18:22)


http://cs.berkeley.edu/~bh/sig5.png

Offline

 

#5 2010-05-29 15:26:26

fullmoon
Retired Community Moderator
Registered: 2007-06-04
Posts: 1000+

Re: BYOB 2.99 Circumference Block and Area of a circle Block

bharvey wrote:

looks small, but it'll grow as needed to contain as big an expression as you want!

Of course, you can always use the "report []" block, too. It's a lot easier to try and squeeze blocks in there!


http://i302.photobucket.com/albums/nn100/fullmoon32/wow.jpg

Offline

 

#6 2010-05-31 08:14:51

likegames
Scratcher
Registered: 2008-03-24
Posts: 100+

Re: BYOB 2.99 Circumference Block and Area of a circle Block

You don't put in that random number... you put in pi.
Set a to D * 3.14159265358979

Last edited by likegames (2010-05-31 08:15:30)


There are 10 types of people in this world: Those who understand trinary, those who don't, and those who think this is the same old signature.
Three lines! (and base three!)

Offline

 

Board footer