OOPs Lab- generation of email and password , given the name and department of an Employee
Please run the Main.java file situated in LabAssignment.com.abc package.
*a) Generate an email with the following syntax
- firstNamelastName@department.company.com
- b) Determine the department (Technical, Admin, Human Resource, Legal)
- c) Generate a random password which will contain (number, capital letter, small letter & special character)
- d) Display the generated credentials
- e) Use parameterized constructor of class Employee, to pass firstName, lastName.
- f) Create a separate CredentialService which will have generatePassword, generateEmailAddress, & showCredentials method.
- Sample output
-
- ABC Company
-
- Welcome to email ID and Password Generator.
- Please enter your fist name:
- Please enter your last name:
- Please choose your department,
- *1 ->Technical
- *2 ->Admin
- *3 ->Human Resources
- *4 ->Legal
- Dear Harshit, your generated credentials are as follows
- Email ---> harshitchoudary@tech.abc.com
- Password ---> 181E@wFT