Question
Username Generator python A feature that generates a unique bootcamp username based on aformat and personal information. The program should be structured in the following
Username Generator python
A feature that generates a unique bootcamp username based on aformat and
personal information.
The program should be structured in the following way:
1. Your program should prompt a user to input Their First Name,Last Name,
Campus and the cohort year they are entering. - It is your choicehow you will
expect this input, one by one or in a single string
2. Your program should validate user input in the followingways:
a. First name and last name name should not contain digits
b. Campus should be a valid campus
c. Cohort year should be a valid cohort year - a candidate can’tjoin a cohort
in the past
3. You will have a function that produces the username from theinput provided.
4. The user will then be asked if the final username is correct.Let them know what
the format of the username is and if the final username iscorrect.
See below for an example of the final bootcamp username based onpersonal
information:
First Name: Lungelo
Last Name: Mkhize
Cohort Year: 2022
Final Campus: Durban
Final username:
elomkhDBN2022
ELO - Last 3 letters of first name (if their name is less than 3letters you should add the
letter O at the end)
MKH - First 3 letters of their last name (if their name is lessthan 3 letters you should
add the letter O at the end)
DBN - Final Campus selection - Johannesburg is JHB, Cape Town isCPT, Durban is DBN,
Phokeng is PHO
2022 - The cohort year they are entering
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started