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
|