Alice Community

Alice Community (http://www.alice.org/community/index.php)
-   The Lounge (http://www.alice.org/community/forumdisplay.php?f=4)
-   -   Assignment 6 Bottles of Pop (http://www.alice.org/community/showthread.php?t=10441)

garyander1 12-30-2013 08:49 PM

Assignment 6 Bottles of Pop
 
The most challenging part of assignment 6 was getting the object to say a variable. The book wasn't much help but I finally found a way to have an object say "what" as a string. Once I accomplished that the rest was surprisingly simple.

I tried using an 'if' statement so that if the number of bottles=1 to change "bottles" to "bottle." I came close but the "1 bottle" statement repeated twice. I decided to remove the 'if' statement but it was fun trying to figure it out.


All times are GMT -5. The time now is 11:56 PM.

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