Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Create a Python program that gathers the following employee information according to the rules provided: Employee ID (this is required, and must be a number

Create a Python program that gathers the following employee information according to the rules provided:

  • Employee ID (this is required, and must be a number that is 7 or less digits long)
  • Employee Name (this is required, and must be comprised of primarily upper and lower case letters. It also cannot contain any of the following characters: ! " @ # $ % ^ & * ( ) _ = + , < > / ? ; : [ ] { } ).
  • Employee Email Address (this is required, and must be comprised of primarily of alphanumeric characters. It also cannot contain any of the following characters: ! " ' # $ % ^ & * ( )  = + , < > / ? ; : [ ] { } )
  • Employee Address (this is not required, but if it is provided, it must be comprised primarily of alphanumeric characters. It cannot contain any of the following characters: ! " ' @ $ % ^ & * _  = + < >  ? ; : [ ] { } )

Write your program such that if a user inputs any of the above information incorrectly, the program terminates without asking for more information.

At the end of your program, it should print out: "Hello, . Your Employee ID is , and your email address is . Your address is ". If no address was provided, please replace the last sentence with "You did not provide an address.'

 

Part 2:

 you need to modify the program you created so that it can take up to 5 employees' worth of information. Also, when a user enters improper data, the program asks the user to re-enter it before continuing on.

As employee information is added, create a list of dictionaries that hold all of the information. And the end of your program, print out the list.

Step by Step Solution

3.37 Rating (150 Votes )

There are 3 Steps involved in it

Step: 1

Sure Heres a Python program that gathers employee information according to the provided rules python import re def validateemployeeidempid if rematchr... 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

Recommended Textbook for

Income Tax Fundamentals 2013

Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill

31st Edition

1111972516, 978-1285586618, 1285586611, 978-1285613109, 978-1111972516

More Books

Students also viewed these Programming questions

Question

Implement the method contains() for HashST.

Answered: 1 week ago

Question

22. Why is tPA not helpful in cases of hemorrhagepg109

Answered: 1 week ago