Question: Develop an instantiable class for a password generator using Java. A company has hired you to develop an application to generate certain items for their

Develop an instantiable class for a password generator using Java. A company has hired you to develop an application to generate certain items for their employees accounts. The application prompts the user to provide one single line of text with an employees full name in the following format forename surname at a time. Next, the application uses the given full name to create the corresponding item.

Develop an instantiable class for this application which contains:

  • A class definition

  • Suitable data members (instance variables)

  • A constructor

  • A setter method to set the given full name

  • A compute method to generate/create the item assigned to you according to the rules

    assigned to you based on

  • 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)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!