Objective:
•
String validation
• String processing
Conditional statements in Python
Control statements in Python
This application validates email domain address for every registered customer and
displays information in formatted output.
You may assign an organization name. For example, Humber College is an
organization and all employees have email address that uses domain as "humber.ca".
This
means that all the employees of Humber will always have email domain as
"humber.ca
".
This application displays your name and student number on the top right corner
followed by
Organization name (you may choose your own Organization name). You
may then define your email
domain name (based on the Organization name that you
chose) for your organization.
On the next line, it displays organization's name approximately at the middle of the line.
This application then displays menu choices to the user.
1. To add first name, last name and email address
2. To display all the customers' information in the formatted output
3. To end the application
When user enters choice 1, application prompts user to enter first name. User enters
first name. Then application
prompts user to enter last name. User enters last name.
Then application prompts user to enter
customer's registered email address. User
enters the email address.
The application validates the email domain name. If the email domain name is
validated, then the first name, last name
and email address of this customer is
appended to the formatted string
. If the email domain name does not match with the
organizational email domain name (e.g. "
humber.ca"), the application again prompts to
enter correct email address. User again enters
email address. Application tries to
validate this email address three times.
During these three times if at any time, the
email domain name is validated, the
application will append the first name, last name
and the email address to the string
If during these three trials, correct email address is not validated, then the application
does not append the first name, last name and the
email address to the string. The
application goes back to display the menu.