Alice Community  

Go Back   Alice Community > General Discussion > Questions and Comments

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
assignment 6
Old
kks7696
Junior Member
 
Status: Offline
Posts: 7
Join Date: Jun 2016
Default assignment 6 - 06-17-2016, 02:42 PM

It was very tricky first I could not figure out how to make it count down, I just had the while statement in there finally I added a if else statement and was able to get it to count down until it got to 2. Finally I added an if statement that said if it equaled one to set the value to a string that said 1. Then I struggled with getting it to say bottle and not bottles at the end, but I was able to combine the if and else statements above and on the else statement join it with the word bottles and remove the word bottles from the song, add bottle to the if statement and perfecto. I still could not get rid of the decimal place and it shows 99.0, 98.0 and so on but I am not sure if you even can get rid of it, so I uploaded it. Hopefully the teacher is impressed it took me a few hours to complete.
   
Reply With Quote
 


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.