Acompany has hired you to develop an application to generate passwords for their employees’ accounts. The application prompts the user to provide one single line of text with an employee’s full name in the following format “forename surname” at a time. (Please note that you are not required to validate the input, we assume that the input is well-formed.) Next, the application uses the given full name to create the corresponding item. Note that the application should work irrespective of how the user provides the full name i.e. using upper-case letters, lower-case letters, or a combination of both upper-case and lower-case letters. You should use the full name as provided i.e. you should not modify the given full name to a different letter case. Assigned Item Rules to Create the Item Examples (given full name and corresponding item that should be created) password The password is created using the following rules: • The letters ‘a’, ’e’, and ‘t’ from the given full name will not be used in the password • Each vowel (except ‘a’ and ‘e’ which are eliminated) is going to be added twice • Each space is replaced by the letter ‘S’ followed by a ‘&’ and a ‘?’ • All the other characters will remain the same as in the given full name • The password ends with the total number of letters eliminated (i.e. the total number of letters ‘a’, ’e’, and ‘t’ from the given full name that were not used in the password) For example, if the instantiable class receives: • The full name “JANE dOe" then the compute method should create the password “JNS&?dOO3” (note that 3 is the total number of letters eliminated i.e. as the letters ‘a’ and ‘e’ from the given full name were not used in the password) • The full name “Conor MUrphy" then the compute method should create the password “coonOOrS&?MUUrphy0” (note that 0 is the total number of letters eliminated i.e. as the given full name did not contain any of the letters ‘a’, ‘e’, or ‘t’) Ask the user at the beginning of the application how many items they would like to create, and ensure that the application enables the user to provide that number of full names and for each full name create the corresponding password. The source code should be commented throughout highlighting and explaining where the key functionality is being a
Please do not give solution in image format thanku
Acompany has hired you to develop an application to generate passwords for their employees’ accounts. The application prompts the user to provide one single line of text with an employee’s full name in the following format “forename surname” at a time. (Please note that you are not required to validate the input, we assume that the input is well-formed.) Next, the application uses the given full name to create the corresponding item. Note that the application should work irrespective of how the user provides the full name i.e. using upper-case letters, lower-case letters, or a combination of both upper-case and lower-case letters. You should use the full name as provided i.e. you should not modify the given full name to a different letter case. Assigned Item Rules to Create the Item Examples (given full name and corresponding item that should be created) password The password is created using the following rules: • The letters ‘a’, ’e’, and ‘t’ from the given full name will not be used in the password • Each vowel (except ‘a’ and ‘e’ which are eliminated) is going to be added twice • Each space is replaced by the letter ‘S’ followed by a ‘&’ and a ‘?’ • All the other characters will remain the same as in the given full name • The password ends with the total number of letters eliminated (i.e. the total number of letters ‘a’, ’e’, and ‘t’ from the given full name that were not used in the password) For example, if the instantiable class receives: • The full name “JANE dOe" then the compute method should create the password “JNS&?dOO3” (note that 3 is the total number of letters eliminated i.e. as the letters ‘a’ and ‘e’ from the given full name were not used in the password) • The full name “Conor MUrphy" then the compute method should create the password “coonOOrS&?MUUrphy0” (note that 0 is the total number of letters eliminated i.e. as the given full name did not contain any of the letters ‘a’, ‘e’, or ‘t’) Ask the user at the beginning of the application how many items they would like to create, and ensure that the application enables the user to provide that number of full names and for each full name create the corresponding password. The source code should be commented throughout highlighting and explaining where the key functionality is being addressed in c# only
Step by step
Solved in 4 steps with 4 images