Alice Community  

Go Back   Alice Community > General Discussion > The Lounge

Reply
 
Thread Tools Display Modes
I am going loopy with this loopy assignment
Old
Bigboss0628
Junior Member
 
Status: Offline
Posts: 12
Join Date: Jul 2013
Exclamation I am going loopy with this loopy assignment - 07-30-2013, 12:53 PM

I can complete the lab with the yes or no buttons working the way they should but since the prof ask as added bonus for us to use yes, Yes, Yes and No. I am stuck. I dont want to give up and just complete the assignment taking the easy way out and i want to learn what and understand what is being asked.

Can any one help I can email the code if needed to get a visual. I am using loops and while but i know i am doing something wrong. proof is in the pudding.

thanks
juan
   
Reply With Quote
Old
JasonEllis
Junior Member
 
Status: Offline
Posts: 11
Join Date: Jul 2013
Default 07-30-2013, 02:19 PM

Quote:
Originally Posted by Bigboss0628 View Post
I can complete the lab with the yes or no buttons working the way they should but since the prof ask as added bonus for us to use yes, Yes, Yes and No. I am stuck. I dont want to give up and just complete the assignment taking the easy way out and i want to learn what and understand what is being asked.

Can any one help I can email the code if needed to get a visual. I am using loops and while but i know i am doing something wrong. proof is in the pudding.

thanks
juan
You will want to replace your "ask user yes or no" with ask the user a string. I think I used a boolean variable called again to determine if it should run again (while again equals yes). In the world functions you can find a or b, or both, which you would use to set your again variable as true if the user enters Yes, yes, or YES.
   
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 ©2020, Carnegie Mellon University
Alice 2.x 1999-2012, Alice 3.x 2008-2012, Carnegie Mellon University. All rights reserved.