Alice Community  

Go Back   Alice Community > General Discussion > The Lounge

Reply
 
Thread Tools Display Modes
Assignment 6 Bottles of Pop
Old
garyander1
Junior Member
 
Status: Offline
Posts: 6
Join Date: Dec 2013
Default Assignment 6 Bottles of Pop - 12-30-2013, 07:49 PM

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.

Last edited by garyander1; 12-30-2013 at 07:56 PM. Reason: update
   
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 ©2024, Carnegie Mellon University
Alice 2.x © 1999-2012, Alice 3.x © 2008-2012, Carnegie Mellon University. All rights reserved.