alice-teacher converting to a string
A. Jeff Goldstein
AJeff.Goldstein at VBSchools.com
Fri Oct 21 14:18:33 EDT 2011
Make the first string: "Your number differs by amount " ß be sure to leave an extra space, here
Use the world string function a + b.
Drag it to first string. For the part b just leave it as default.
Next, drag the "what as string" function to your default string (the b part rectangle). Notice it turns yellow as you drag it, and green when it's in the right place. Drop it there and chose the expression for the difference.
Much more complicated than in Java: System.out.println("Your number differs by amount " + difference);
J
Sincerely,
Jeff Goldstein, www.jeffgold.net
APCS Teacher at Cox High School
Virginia Beach
From: alice-teachers-bounces+ajeff.goldstein=vbschools.com at lists.andrew.cmu.edu [mailto:alice-teachers-bounces+ajeff.goldstein=vbschools.com at lists.andrew.cmu.edu] On Behalf Of Ella Glazer
Sent: Thursday, October 20, 2011 11:15 AM
To: Alice educators
Subject: alice-teacher converting to a string
I want to convert an int to a string. I am playing a guess my number and I want the red cow to tell the blue cow that his/her number is < or > by a certain amount. I get the subtraction to work but I need to convert the variable to a string. I know to use the what as string but it won't go in the right place. Any ideas?
Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.andrew.cmu.edu/mailman/private/alice-teachers/attachments/20111021/7111e053/attachment.html
More information about the alice-teachers
mailing list