alice-teacher Watching a number variable and/or printing a number variable to screen

Ziccardi, Adam aziccardi at opschools.org
Wed Mar 16 13:59:21 EDT 2022


Hi Carlos,
A workaround we like is to have a creature say (“”+theIntOrNumericalData)
It’s an old school Java tactic to Stringize data by adding it to an empty
string.
Lmk if it worked for your needs
AZ

On Wed, Mar 16, 2022 at 11:38 AM Carlos Bovell via alice-teachers <
alice-teachers at lists.andrew.cmu.edu> wrote:

> Hi,
>
> Our class has been looking to keep track of counters and also confirm
> numeric values inside arrays in our Alice 3 programs but has not found a
> convenient way to do this. The toString() method does not appear to be
> working in the way we expected.
>
> Does anyone have a way they use to check on int or double variables to
> make sure they are assigned the values that they are intended to take?
>
> Thanks for taking my questions.
>
> Sincerely,
>
> Carlos Bovell
> Mathematics and Computer Science
> Northern Burlington High School
> _______________________________________________
> alice-teachers mailing list
> alice-teachers at lists.andrew.cmu.edu
> To change settings or unsubscribe visit:
> https://lists.andrew.cmu.edu/mailman/listinfo/alice-teachers

-- 
Adam Ziccardi
716-209-6482
OPTA president
K-12 CS coordinator
NYS Master Teacher
Teacher Webpage <https://www.opschools.org/Domain/2958>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.andrew.cmu.edu/pipermail/alice-teachers/attachments/20220316/a97c6fe6/attachment.html>


More information about the alice-teachers mailing list