1. You are required to use String manipulation to generate an… 1.You are required to use String manipulation to generate an employee’s in
1. You are required to use String manipulation to generate an… 1.You are required to use String manipulation to generate an employee’s initial values when they are added to the system.The program will ask for their name and then generate the following values based on the information provided (Example based on a user who provided “June Summers” as their name):Image transcription textUsername:- june.summers – lowercasefirstname(dot)lastname Emailaddress:- jsummers@ora… Show more… Show morea)make project named accountgenerator.b)make a class named Employee that has no main method and instance fields to store the unchangeable text values for thename, username and email as well as the changeable value for the password.c)make a toString() method that will produce the following output:d)make the following constructor showing the passing of the information to the methods.publicEmployee() {name= setName();username= setUserName(name);email= setEmail(username);password= setPassword(username);}//end constructore)make a private method named countChars that will aacept a string and a char as parameters and will count the number oftimes the char appears in a String. Use a for loop to go through the String and return the count of characters to the callingmethod.f)make a setName method that accepts no parameters and returns a String value for the name.make a count variable thatwill store the return value from the countChars method and a Scanner object to read in values from the console. Use a post tested loop to read in the user’s name until they provide a first and second name (one space in between). Send the name and a space character to the charCounts method and exit the loop when there is a single space in the name.g)make a setUserName method that accepts the String name as a parameter and returns the formatted username.The username should be lowercase and have a dot (.) instead of a space separating the first and last names.h)make the setEmail method that accepts the username as a parameter and returns the formatted email address.The email address is made up of the first character of the first name followed by the complete surname followed by the email address suffix (@oracleacademy.Test).i)make the setPassword method that accepts the username as a parameter and returns the complex password used for theinitial login. Set the length of the password to 8 characters, if the username is too small add additional asterisks (*) until itreaches 8 characters. If the username is too large then restrict it to the first 8 characters. Replace all of the vowels in theusername with asterisks. A complex password requires an uppercase character so code is required to find the first alphabeticcharacter in the password and set that character to uppercase. Return the password to the calling method.j)make a driver class that creates a single Employee object and displays the value to the console using the Employee’stoString() method.k)Test your code with a variety of user names. Computer Science Engineering & Technology Java Programming ASFASFAF ASFASFSAF Share QuestionEmailCopy link


