PDA

View Full Version : Assignment 6


Nita
03-23-2017, 06:44 PM
Hi,

So I am currently on assignment 6, which is to create an Alice program in which a character sings "99 Bottles of Pop". I'm supposed to use the least amount of lines possible. But I'm really having issues.

http://www.alice.org/community/showthread.php?t=10547&highlight=song

I followed the steps to the best of my ability on the page I linked, and I am still not getting it.

Help?

chickentree
03-24-2017, 01:05 PM
Hi,

So I am currently on assignment 6, which is to create an Alice program in which a character sings "99 Bottles of Pop". I'm supposed to use the least amount of lines possible. But I'm really having issues.

http://www.alice.org/community/showthread.php?t=10547&highlight=song

I followed the steps to the best of my ability on the page I linked, and I am still not getting it.

Help?

Can you provide your movie so far, I need to see what you are trying to do in order to help.
In general you can use The "Loop" instruction changing the values to count from 99 down to 0. The index will then be the bottle count. Or you could create your own index value and using the "While" instruction count the index down to 0 testing its value each time through the while.
As far as the least amount of lines. Don't worry about it, get the basic problem working and then see how you can improve it.

Mark

MrMoke
03-25-2017, 03:35 PM
Yeah- Assuming the need for a Loop or While is needed, I could get it in four or five lines inside the loop using the standard four lines for the lyrics.
5) A While Loop that counts down is easier.
4) A Standard Loop is shorter, but requires more complicated commands.