Alice Community  

Go Back   Alice Community > Alice 2 > How do I...?

Reply
 
Thread Tools Display Modes
Help with loops
Old
jaylee72
Member
 
Status: Offline
Posts: 16
Join Date: Dec 2017
Default Help with loops - 12-18-2017, 10:29 PM

Frustrated with the latest assignment. I feel like I'm missing something so simple. The goal is ask the user for a number, use the number to spin the object around that many times - then ask user if they want to run again.

I'm asking them for a yes/no answer. My answer variable is in my loop and this is where the problem is. If they say yes, I'm hopping over to my iceskater.method which asks how many and does the turning action. I kept this as a separate method so I could call it if user answers yes. Works mostly fine whether answer is yes/no but if answer is yes, then no, the loop returns it back to the iceskater.method. What am I missing?
Attached Files
File Type: a2w Lab2-JE.a2w (614.0 KB, 2 views)
   
Reply With Quote
It WAS simple
Old
jaylee72
Member
 
Status: Offline
Posts: 16
Join Date: Dec 2017
Default It WAS simple - 12-20-2017, 12:03 PM

Figured it out. It WAS so simple. I feel silly but learned from it and figured it out!
   
Reply With Quote
Old
jkidd
Member
 
Status: Offline
Posts: 21
Join Date: Jun 2018
Default 06-28-2018, 05:02 PM

I'm having the exact same problem with this assignment! Everything works great except for the last part.

What was your solution?

- jkidd
   
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 ©2018, Carnegie Mellon University
Alice 2.x 1999-2012, Alice 3.x 2008-2012, Carnegie Mellon University. All rights reserved.