Close
Close full mode
logoMakeCode AP CSP

Student Tasks/Solutions

Activity

Task 1: Option for Failure - Option for Failure

Task 2: Make a Password - Make a Password

Task 2: Challenge - Make a Password Challenge

Reflection/Homework

  1. In task #2, you implemented a basic β€œpassword checker.” What is one possible downside of the way that the code was implemented?
  • There is no '*' character available with the on-screen Arcade keyboard.
  • In the real world, we would not "hard-code" password values in code - these are looked up in an encrypted database, and each user may have a different password.
  1. List at least two ways in which user input can be used in writing a text based game:
  • In a Welcome message.
  • As part of a game Leaderboard.
  • To name a character in the game after the user.
πŸ“˜ Unit 5 - AAP Part 2 β€” Previous
Validating User Input
Next β€” πŸ“˜ Unit 5 - AAP Part 2
Day 7