Answered step by step
Verified Expert Solution
Link Copied!

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 3 Username Generator with Dup Checker and User Input -100 points possible
Project Requirements
Name of program file: username_generator_dup_checker.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 3
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 2. 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 2.
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 5 employees
and include at least 2 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 2.
Year of birth should be a length of 4 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 5 employees, you
will terminate the input process.
Process section:
With in a for in loop do the following:
1. Use that information to create employee usernames in
the following format: first initial last name year of
birth i.e. Dale Fontenot 1963= dfontenot63
2. 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 dalef63. After building
the new username, append the username list with it. If
no duplicate is found, append the username to the
username list.
3. Store the usernames in a list
4. 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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

Define marketing.

Answered: 1 week ago

Question

What are the traditional marketing concepts? Explain.

Answered: 1 week ago

Question

Define Conventional Marketing.

Answered: 1 week ago

Question

Define Synchro Marketing.

Answered: 1 week ago

Question

2. Are you varying your pitch (to avoid being monotonous)?

Answered: 1 week ago

Question

3. Are you varying your speaking rate and volume?

Answered: 1 week ago