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

#1 2010-12-29 19:47:03

Robot_Maniac
Scratcher
Registered: 2010-11-22
Posts: 56

Do I really need to do this?

I'm trying to find all the combonations of four certain numbers to make a scratch project, but is there an easier way???


Math Trick of the Week: Choose any three digit number that's one digit is at least 2 less that the tens digit and the tens digit at least 2 less than the hundreds. Then, reverse the digits and subtract. Then, reverse the digits in the answer and add. You should get 1089.

Offline

 

#2 2010-12-29 19:54:11

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

Re: Do I really need to do this?

I'm not sure I understand what you mean... Do you mind describing your problem in a tad more detail? That way we can help you a lot more accurately.

Offline

 

#3 2010-12-29 19:58:22

Robot_Maniac
Scratcher
Registered: 2010-11-22
Posts: 56

Re: Do I really need to do this?

I'm trying to make a math 24 game solver but the only way I can think of doing it is to find how many combonations there are with + - * and /. But there has to be an easier way, right?


Math Trick of the Week: Choose any three digit number that's one digit is at least 2 less that the tens digit and the tens digit at least 2 less than the hundreds. Then, reverse the digits and subtract. Then, reverse the digits in the answer and add. You should get 1089.

Offline

 

#4 2010-12-29 19:59:41

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

Re: Do I really need to do this?

I'm still a bit confused... Can you describe *exactly* what you're trying to do?

Offline

 

#5 2010-12-29 20:04:58

Robot_Maniac
Scratcher
Registered: 2010-11-22
Posts: 56

Re: Do I really need to do this?

In order to make a project, I need to find all the combonations of 4 numbers. But can a few scripts help me find it easier??


Math Trick of the Week: Choose any three digit number that's one digit is at least 2 less that the tens digit and the tens digit at least 2 less than the hundreds. Then, reverse the digits and subtract. Then, reverse the digits in the answer and add. You should get 1089.

Offline

 

#6 2010-12-29 20:07:58

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

Re: Do I really need to do this?

Robot_Maniac wrote:

In order to make a project, I need to find all the combonations of 4 numbers. But can a few scripts help me find it easier??

Oh! Thanks.  smile

Now, excuse me for being slightly ignorant, but do you mean "combinations" as in "ways to add, subtract, multiply, and divide them" or "ways to order them to make a larger number?"

Offline

 

#7 2010-12-29 20:13:32

Robot_Maniac
Scratcher
Registered: 2010-11-22
Posts: 56

Re: Do I really need to do this?

ways to add, subtract, multiply, and divide them.


Math Trick of the Week: Choose any three digit number that's one digit is at least 2 less that the tens digit and the tens digit at least 2 less than the hundreds. Then, reverse the digits and subtract. Then, reverse the digits in the answer and add. You should get 1089.

Offline

 

#8 2010-12-29 20:20:08

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

Re: Do I really need to do this?

Robot_Maniac wrote:

ways to add, subtract, multiply, and divide them.

I'm afraid there is pretty much only one way: use a script for every possible combination of adding, subtracting, multiplying, and dividing them. Sorry I can't be of much help.

Offline

 

#9 2010-12-29 20:28:40

Robot_Maniac
Scratcher
Registered: 2010-11-22
Posts: 56

Re: Do I really need to do this?

Oh, so it's kinda link this???

[blocks]
<when green flag clicked>
<forever>
<if>(( Number <+>Number  ))((Number  <+>Number  ))<(  <=> 24 )>
<say[I've found the answer!  ]for(  2)secs>


Math Trick of the Week: Choose any three digit number that's one digit is at least 2 less that the tens digit and the tens digit at least 2 less than the hundreds. Then, reverse the digits and subtract. Then, reverse the digits in the answer and add. You should get 1089.

Offline

 

#10 2010-12-29 20:34:06

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

Re: Do I really need to do this?

Robot_Maniac wrote:

Oh, so it's kinda link this???

[blocks]
<when green flag clicked>
<forever>
<if>(( Number <+>Number  ))((Number  <+>Number  ))<(  <=> 24 )>
<say[I've found the answer!  ]for(  2)secs>

Yes, and then switch it up every time.  smile

Offline

 

#11 2010-12-29 21:48:11

ian528
Scratcher
Registered: 2010-05-25
Posts: 500+

Re: Do I really need to do this?

Just so you know, 24 is a math game with cards. Each card has 4 numbers on it. You have to add, subtract, multiply, and divide those numbers to try to make "24".

Offline

 

#12 2010-12-31 11:31:09

Robot_Maniac
Scratcher
Registered: 2010-11-22
Posts: 56

Re: Do I really need to do this?

Yes, I know that. So then I'm going to switch it up to maybe (Number+Number+Number-Number)


Math Trick of the Week: Choose any three digit number that's one digit is at least 2 less that the tens digit and the tens digit at least 2 less than the hundreds. Then, reverse the digits and subtract. Then, reverse the digits in the answer and add. You should get 1089.

Offline

 

Board footer