Why?

  • Incorrect data can cause runtime errors
  • This can lead to unexpected results or program crashes

How?

  • Use prompts that clearly state the required input
  • Check user to make sure it meets the criteria
  • Re-prompt the user if the data is invalid