Zebra0.com

alice user-inputUser Input in Alice3

User Input in Alice3

Learn Alice in FREE step-by-step lessons.

Module 10: User Input in Alice3

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.


Goals:

Objectives:

Print the lesson

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.
  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.
  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.
  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.
  5. Martian asks if he is on Mars Martian asks if he is on Mars: We ask the user for a Boolean value.
  6. Martian asks if he is on earth: We ask the user for a Boolean value, and use an if statement for the value
  7. Self Study Questions Self Study Questions: What have you learned?
  8. Active Learning Active Learning: Practice what you learned
  9. Discussion questions Discussion questions: What do you think?
GlossaryGlossary for user-input lesson
Full Glossary