Alice Community  

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

Reply
 
Thread Tools Display Modes
Space Jump - help
Old
missocean
Junior Member
 
Status: Offline
Posts: 1
Join Date: Oct 2011
Default Space Jump - help - 10-31-2011, 03:27 PM

I'm working on an assignment Space Jump I've completed part of it but I'm stuck on the second half.

Create a world with an astronaut and a LunarLander. In "my first method" using the "ask the user for a number" function, ask the user to enter how high the astronaut should jump and how many maneuvers to do in space.

Then call a created method, moonwalk, and pass height and number of maneuvers as arguments. In the moonwalk method, have the astronaut jump the specified height. At the top, us a counter controlled loop to control the astronaut's number of maneuvers. After performing some maneuvers the astronaut then returns to the moon's surface. The astronaut salutes and says a message.

I have the whole first part but even after reading the text I don't understand the arguments or counter controlled loop. Can anyone help me out?
   
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.