Alice Community

Alice Community (http://www.alice.org/community/index.php)
-   How do I...? (http://www.alice.org/community/forumdisplay.php?f=16)
-   -   Help with loops (http://www.alice.org/community/showthread.php?t=11857)

jaylee72 12-18-2017 09:29 PM

Help with loops
 
1 Attachment(s)
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?

jaylee72 12-20-2017 11:03 AM

It WAS simple
 
Figured it out. It WAS so simple. I feel silly but learned from it and figured it out!

jkidd 06-28-2018 04: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


All times are GMT -5. The time now is 02:39 PM.

Copyright ©2024, Carnegie Mellon University
Alice 2.x © 1999-2012, Alice 3.x © 2008-2012, Carnegie Mellon University. All rights reserved.