Alice Community

Alice Community (
-   How do I...? (
-   -   99 bottles problem (

seanr25 04-03-2013 02:51 PM

99 bottles problem
1 Attachment(s)
I have been working on this assignment and I can't seem to figure out why it won't work. I am not sure if my string variable "number" is correct, or if the problem is something else. Can anyone take a look at it and give me some advice/direction?


jnawrocki 04-03-2013 05:09 PM

1 Attachment(s)
Your solution has a couple of issues.
1. You decrement the numeric variable bottles. This is good.
2. However, you print the string variable number. This is not good.
The solution is to print your numeric variable bottles. To do this you use the function (functions tab) 'what as a string' in your say method.

Now delete the string variable number, because it is not used.

Check this file.

RebootMunroe 03-26-2018 01:49 PM


All times are GMT -5. The time now is 04:05 PM.

Copyright ©2020, Carnegie Mellon University
Alice 2.x 1999-2012, Alice 3.x 2008-2012, Carnegie Mellon University. All rights reserved.