AllTheTimeWorld.com

alice user-inputUser Input in Alice3

User Input in Alice3

Learn Alice in FREE step-by-step lessons.

Module 8: User Input in Alice3

The goal of this lesson is to learn how to get input from the user and store those values in variables.
You will be able to ask the user for information such as his name and age, and then use that information later in the program.

In this module, you will learn create an interactive program.
Your program will ask the user his name and then make a 3D character say "hello" using the name they entered.
In order to do this you will:

In order to do this you will:

Please study the material at each of the links below.

  1. Ask the users name and say hello Ask the users name and say hello: Use the function getStringFromUser to ask the user his name, then say hello using the name entered.
    /alice/videos/alice-hello-user.mp4

  2. Ask the user how old they are Ask the user how old they are: Use the function getIntegerFromUser to ask the user's age.
    /alice/videos/alice-age.mp4
  3. Ask the users their favorite food Ask the users their favorite food: Wolf asks "What's your favorite food?", then says that is his favorite too.
    /alice/videos/alice-favorite-food.mp4
  4. Panda asks how much to turn Panda asks how much to turn: We ask the user for a double and the panda spins around that amount.
    /alice/videos/alice-panda-turn.mp4
  5. Martian asks if he is on Mars Martian asks if he is on Mars: We ask the user for a Boolean value.
    /alice/videos/alice-getboolean.mp4
  6. Self Study Questions Self Study Questions: What have you learned?

  7. Discussion Questions Discussion Questions

Active Learning

Ask the user some questions