From cbovell at nburlington.com Wed Mar 16 11:15:45 2022 From: cbovell at nburlington.com (Carlos Bovell) Date: Wed, 16 Mar 2022 15:15:45 +0000 Subject: alice-teacher Watching a number variable and/or printing a number variable to screen Message-ID: 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: From spleau at assabet.org Wed Mar 16 12:11:59 2022 From: spleau at assabet.org (Steven Pleau) Date: Wed, 16 Mar 2022 12:11:59 -0400 Subject: alice-teacher Watching a number variable and/or printing a number variable to screen In-Reply-To: References: Message-ID: Are you talking about something like this? Steve Steven Pleau Computer Programming & Web Development Lead Teacher *Assabet **|* *Do. More.* Assabet Valley RVTHS 215 Fitchburg Street Marlborough, MA 01752 (t) 508.485.9430 x2840 <508.263.9602> www.assabet.org *About Assabet* *Founded in 1973 in Marlborough, Massachusetts, Assabet is a public technical high school where students learn by doing. Thanks to expert teachers, unique learning spaces, and a forward?thinking curriculum, students from Berlin, Hudson, Marlborough, Maynard, Northborough, Southborough, and Westborough graduate with the knowledge, skills, and resilience to thrive in college, work, and life. * Confidentiality Notice: The information contained in this transmission may be privileged, confidential and protected from disclosure under Federal Confidentiality Laws (42 CFR Part 2 and 45 CFR Parts 160-164). Any dissemination, distribution, or duplication of this communication is strictly prohibited without the consent of the writer. If you are not the intended recipient, or you have received this communication in error, please notify the sender immediately at the email address above or delete this email. On Wed, Mar 16, 2022 at 11:40 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 -- Confidentiality Notice: The information contained in this transmission may be privileged, confidential and protected from disclosure under Federal Confidentiality Laws (42 CFR Part 2 and 45 CFR Parts 160-164). Any dissemination, distribution, or duplication of this communication is strictly prohibited without the consent of the writer. If you are not the intended recipient, or you have received this communication in error, please notify the sender immediately at the email address above or delete this email. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: counter1.a3p Type: application/octet-stream Size: 305667 bytes Desc: not available URL: From aziccardi at opschools.org Wed Mar 16 13:59:21 2022 From: aziccardi at opschools.org (Ziccardi, Adam) Date: Wed, 16 Mar 2022 13:59:21 -0400 Subject: alice-teacher Watching a number variable and/or printing a number variable to screen In-Reply-To: References: Message-ID: 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: From cbovell at nburlington.com Thu Mar 17 22:39:12 2022 From: cbovell at nburlington.com (Carlos Bovell) Date: Fri, 18 Mar 2022 02:39:12 +0000 Subject: alice-teacher Watching a number variable and/or printing a number variable to screen In-Reply-To: References: Message-ID: Yes, thank you very much. We could use something like the following code. Very helpful! Carlos ________________________________ From: alice-teachers on behalf of Steven Pleau via alice-teachers Sent: Wednesday, March 16, 2022 12:11 PM To: Alice educators Subject: Re: alice-teacher Watching a number variable and/or printing a number variable to screen CAUTION: This is email originated from outside of the organization. Please exercise caution when clicking links, opening attachments, or providing personal information. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Alice_3_randomNum_variable.jpg Type: image/jpeg Size: 179881 bytes Desc: Alice_3_randomNum_variable.jpg URL: