Alice Community  

Go Back   Alice Community > Alice 2 > How do I...?

Reply
 
Thread Tools Display Modes
99 bottles problem
Old
seanr25
Junior Member
 
Status: Offline
Posts: 13
Join Date: Jan 2013
Default 99 bottles problem - 04-03-2013, 03:51 PM

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?

Thanks!
Attached Files
File Type: a2w Assign6-rb.a2w (903.2 KB, 8 views)
   
Reply With Quote
Old
jnawrocki
Member
 
Status: Offline
Posts: 32
Join Date: Jan 2010
Location: Toledo, OH
Default 04-03-2013, 06:09 PM

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.
Attached Files
File Type: a2w Assign6-rb.a2w (905.2 KB, 11 views)
   
Reply With Quote
Old
RebootMunroe
Junior Member
 
Status: Offline
Posts: 5
Join Date: Jan 2018
Location: Lancaster, Tx
Default 03-26-2018, 02:49 PM

thnks
   
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



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