Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Project 3 Username Generator with Dup Checker and User Input - 1 0 0 points possible Project Requirements Name of program file: username _ generator
Project Username Generator with Dup Checker and User Input points possible
Project Requirements
Name of program file: usernamegeneratordupchecker.py
Description of program: This program will test your new decision and iterate logic both in the input
section and processing section. This program will take your username
generator project and improve on it This program will ask the end user
questions, what is your first name, what is your last name, what year were
you born. This input will need to be validated and while loops used to force
the end user to enter the correct data. This input will replace the lists we
used in week You will populate those lists with the user input.
The second major change will be the use of if else logic to correct the
duplicate username problem. Last week we used a set function to simple
remove any duplicates from the username list. This week you will test for
duplicate usernames and if found, alter the username to avoid duplicates.
Program Requirements: The program MUST follow the input, process, output model
described in the syllabus video and the introduction to
programming pdf You MUST follow the structure outlined or
you will lose points.
This program will need the import statements for username
and todays date.
This program must have a flower box comment section with
your name, date created, and description of the program
FYI: Not My Description from Above
This project will modify and enhance project
Input section:
Instead of using static list and the zip method, you will
receive input from the end user again this is you, LOL
You will take that information and apply it to a list with
the elements being tuples.
You will ask for user input with the following question:
What is your first name?
What is your last name?
What year were you born?
Your program should ask the end user for at least employees
and include at least employees that will cause a duplicate
username that your new logic will correct.
You will need to validate the data as to length.
First and Last Name should be at least a length of
Year of birth should be a length of but can remain a
string.
After each employee has entered their first name, last name
and year of birth, you should display that information back
out to the employee and ask them to confirm the information.
If the employee answers Yes then update the employee data
list with the information. If the employee answers No then
clear the input variables and ask the questions again.
After your program receives information on employees, you
will terminate the input process.
Process section:
With in a for in loop do the following:
Use that information to create employee usernames in
the following format: first initial last name year of
birth ie Dale Fontenot dfontenot
Use if else logic to test the new username to make sure
it does not exist in the current username list. If it
is a duplicate, do not append the username list but
build a new username using the employees first name
all lower case and the first initial of the last name
and then the year of birth, ie dalef After building
the new username, append the username list with it If
no duplicate is found, append the username to the
username list.
Store the usernames in a list
Store the combined employee information in a dictionary
with the username as the key and a tuple with first
name, last name, year of birth.
Make a copy of the username list without a copy loop and then
sort that copy.
Output section:
You must then output the following information in this order:
Username
Todays Date
Employee Data list that you used to gather user input
Username list with all usernames
Employee data dictionary
Username list that has been sorted
What to turn in: Take a screen shot of your RUNNING program
Upload the screen shot and the py file to blackboard as TWO
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