Alice Community  

Go Back   Alice Community > General Discussion > The Lounge

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Spinning frog & dialog box
Old
rkfoote
Guest
 
Status:
Posts: n/a
Default Spinning frog & dialog box - 12-26-2010, 12:54 PM

I just finished another assignment for DCCCD programming logic course. This one has a frog that asks the user for a number, then jumps up and spins around the number of times that the user entered. Then the frog asks the user if he/she wants to run the program again, and based on the answer, either starts all over again or stops.

Everything worked fine for me on this assignment. I used a loop in the main method to determine whether the program would restart or stop, and another loop to make the frog spin the required number of times. The only issue/problem was that when I close the world and reopen it, before I click on "Play", a dialog box pops up and asks me to enter yes or no...not sure why this is happening. Any ideas? I'll attach the file.
Attached Files
File Type: a2w Lab2.a2w (4.99 MB, 30 views)
   
Reply With Quote
 

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.