Alice Community  

Go Back   Alice Community > General Discussion > The Lounge

Reply
 
Thread Tools Display Modes
Looping Lab
Old
bradf99
Junior Member
 
Status: Offline
Posts: 12
Join Date: Dec 2011
Location: Dallas
Default Looping Lab - 12-17-2011, 03:20 PM

Just completed the Looping lab assignment we have,

Create a world with a character who jumps up in the air and spins the number of times given from user input, then lands. Then the world repeats if the user enters Yes, YES, or yes.

Used While condition (true)
ask user for spins
make character jump and spin using loop sturcture
land
ask if user wants to go again
set condition to true or false based on input.

fairly easy.

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