Create a program that allows users to register for an event. The program must validate all inputs to ensure accurate and safe data collection. As students progress, they will implement increasingly complex validation techniques.
Students will build a basic registration form that asks the user for:
Name
Age
Email
Phone number
Event selection from a list
Each field must include basic validation, such as:
Name is not blank and only contains letters
Age is a
Email contains “@” and “.”
Phone number is exactly 11 digits
Event selection is from a given list
Use input() and print() in Python.
Use if, else, and loops for repeated input.
Store data temporarily (e.g., in a list or dictionary).
Use basic string methods (.isalpha(), .isdigit()).
Challenge Extension: Allow up to 3 retries for each invalid input.
Create reusable functions for each validation check.
Store registration data in a text file for later use.
Use menus to register multiple users or display all registered users.
Use a loop to keep the program running until the user exits.
Challenge Extension: Include a confirmation screen before saving data.
Implement regular expressions for email and phone number validation.
Use try-except to handle unexpected inputs (e.g., non-numeric age).
Allow editing or deleting user entries from the saved file.
Add password protection for admin features (view/edit/delete).
Build a simple GUI version using Tkinter (optional).
Challenge Extension: Create unit tests for validation functions.